diff --git a/.github/workflows/master_build.yml b/.github/workflows/master_build.yml index e264ba7937..6d23257899 100644 --- a/.github/workflows/master_build.yml +++ b/.github/workflows/master_build.yml @@ -49,8 +49,7 @@ jobs: id: buildenv1 run: | echo "UPLOAD_PREFIX=master" >> $GITHUB_ENV - GIT_COMMIT_SHORT=echo $GIT_COMMIT | cut -c1-7 - echo "GIT_COMMIT_SHORT=$GIT_COMMIT_SHORT" >> $GITHUB_ENV + echo ::set-output name=github_sha_short::`echo $GIT_COMMIT | cut -c1-7` echo "JOB_NAME=build (${{matrix.os}}, ${{matrix.build_type}})" >> $GITHUB_ENV # Linux build variables if [[ "${{ matrix.os }}" = "ubuntu-"* ]]; then @@ -87,6 +86,7 @@ jobs: echo "${{ steps.buildenv1.outputs.symbols_archive }}" echo "ARTIFACT_PATTERN=Vircadia-Alpha-*.$INSTALLER_EXT" >> $GITHUB_ENV # Build type variables + echo "GIT_COMMIT_SHORT=${{ steps.buildenv1.outputs.github_sha_short }}" >> $GITHUB_ENV if [ "${{ matrix.build_type }}" = "full" ]; then echo "CLIENT_ONLY=FALSE" >> $GITHUB_ENV echo "INSTALLER=Vircadia-Alpha-$BUILD_NUMBER-$GIT_COMMIT_SHORT.$INSTALLER_EXT" >> $GITHUB_ENV diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index 9907109e9c..757a6fd7c8 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -22,7 +22,6 @@ env: # WIN32 specific variables PreferredToolArchitecture: X64 - GIT_COMMIT_SHORT: ${{ github.sha }} jobs: @@ -49,8 +48,7 @@ jobs: shell: bash id: buildenv1 run: | - GIT_COMMIT_SHORT=echo $GIT_COMMIT | cut -c1-7 - echo "GIT_COMMIT_SHORT=$GIT_COMMIT_SHORT" >> $GITHUB_ENV + echo ::set-output name=github_sha_short::`echo $GIT_COMMIT | cut -c1-7` echo "JOB_NAME=build (${{matrix.os}}, ${{matrix.build_type}})" >> $GITHUB_ENV # Linux build variables @@ -84,6 +82,7 @@ jobs: shell: bash run: | echo "${{ steps.buildenv1.outputs.symbols_archive }}" + echo "GIT_COMMIT_SHORT=${{ steps.buildenv1.outputs.github_sha_short }}" >> $GITHUB_ENV if [[ "${{ matrix.build_type }}" != "android" ]]; then echo "ARTIFACT_PATTERN=Vircadia-Alpha-PR${{ github.event.number }}-*.$INSTALLER_EXT" >> $GITHUB_ENV # Build type variables