From f595ebfaa6589dbec8d01e9cc2aff9c2e4ff434d Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Tue, 25 Jul 2023 21:37:45 -0400 Subject: [PATCH] ci(workflows): [`ci`] fix `jobs.build.env.TARFILE` logic Signed-off-by: Lexus Drumgold --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }}