Skip to content

Commit

Permalink
Correct git ref tests
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Jan 19, 2023
1 parent 5fd34fb commit cfc7f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit cfc7f06

Please sign in to comment.