diff --git a/.github/workflows/link-PR-artifacts.yml b/.github/workflows/link-PR-artifacts.yml index 4a53917e5f..b8c60fa245 100644 --- a/.github/workflows/link-PR-artifacts.yml +++ b/.github/workflows/link-PR-artifacts.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - name: set artifact name - id: set_artifactname - run: | - if [[ "${{ github.REPOSITORY }}" == "emuflight/EmuFlight" ]] ; then - ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.run_number }}" - else - ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.ACTOR }}-${{ github.run_number }}" - fi - echo "${ARTIFACT_NAME}" - echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV + id: set_artifactname + run: | + if [[ "${{ github.REPOSITORY }}" == "emuflight/EmuFlight" ]] ; then + ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.run_number }}" + else + ARTIFACT_NAME="EmuFlight-${{ env.VERSION }}-${{ github.ACTOR }}-${{ github.run_number }}" + fi + echo "${ARTIFACT_NAME}" + echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV - name: 'Download artifact' uses: actions/github-script@v6