Skip to content

Commit

Permalink
fix: release version check v5
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminch committed Jul 23, 2024
1 parent 248c421 commit 11887b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Ensure tag match the current version
run: |
if [ "v$(grep '// ci-version-check' pkg/version.go | sed -r 's/.+return\s"(.+)".+/\1/')" != "$(git describe --tags --abbrev=0)" ] ; then
if [ "v$(grep '// ci-version-check' pkg/version_test.go | sed -r 's/.+NewConstraint\("(.+)"\).+/\1/')" != "$(git describe --tags --abbrev=0)" ] ; then
echo "Tag version do not match application version"
exit 1
fi
Expand Down

0 comments on commit 11887b9

Please sign in to comment.