diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54258d9d..140a92b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -349,8 +349,7 @@ jobs: runs-on: ubuntu-latest env: TARFILE: | - ${{ startsWith(github.ref_name, 'release/') && format('@{0}-{1}-{2}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version) - || format('@{0}-{1}-{2}+{3}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version, github.event.pull_request.head.sha || github.sha) }} + ${{ startsWith(github.head_ref || github.ref_name, 'release/') && format('@{0}-{1}-{2}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version) || format('@{0}-{1}-{2}+{3}.tgz', github.repository_owner, github.event.repository.name, needs.preflight.outputs.version, github.event.pull_request.head.sha || github.sha) }} steps: - id: checkout name: Checkout ${{ env.REF_NAME }}