Skip to content

Commit

Permalink
Fix release version check
Browse files Browse the repository at this point in the history
  • Loading branch information
MurzNN committed Feb 22, 2022
1 parent 1cde4b8 commit 87d3688
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
check-release-version-match:
needs: get-version
runs-on: ubuntu-latest
if: needs.get-version.outputs.version != github.ref_name
if: "github.ref_name != format('v{0}', needs.get-version.outputs.version)"
steps:
- run: echo "Release name (${{github.ref_name}}) and package version (${{needs.get-version.outputs.version}}) don't match, failing."; exit 1;
- run: echo "Github release name (${{github.ref_name}}) and package version (v${{needs.get-version.outputs.version}}) don't match, failing."; exit 1;

lint-build-publish:
needs: check-release-version-match
needs: get-version
if: "github.ref_name == format('v{0}', needs.get-version.outputs.version)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 87d3688

Please sign in to comment.