From 87d3688296eb1fa8397a92e32edd79fdf3a0dfb5 Mon Sep 17 00:00:00 2001 From: Alexey Murz Korepov Date: Tue, 22 Feb 2022 18:04:18 +0300 Subject: [PATCH] Fix release version check --- .github/workflows/publish-release.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index e696307..71cf80b 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -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