From cfc7f0602b302113d6ca40913bb180f8dd9c23d3 Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Thu, 19 Jan 2023 14:26:17 +0000 Subject: [PATCH] Correct git ref tests --- .github/workflows/build-test-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-release.yml b/.github/workflows/build-test-release.yml index fb6fe4e..4b0d2fd 100644 --- a/.github/workflows/build-test-release.yml +++ b/.github/workflows/build-test-release.yml @@ -5,7 +5,7 @@ jobs: uses: ./.github/workflows/build.yml prep-release: - if: startsWith(github.ref, join(fromJSON('["refs/heads/v", "${{ needs.build-test.outputs.pv }}"]'), '')) + if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.pv) needs: build-test permissions: contents: write @@ -14,7 +14,7 @@ jobs: publish: true release: - if: startsWith(github.ref, join(fromJSON('["refs/heads/v", "${{ needs.build-test.outputs.pv }}"]'), '')) + if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.pv) needs: [build-test, prep-release] uses: ./.github/workflows/release.yml with: