Skip to content

Commit

Permalink
Fix subtle bug in version check on release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lupestro committed Feb 3, 2024
1 parent 9cb0729 commit 9ec9578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
PACKAGE_DOWNLOAD: ${{fromJSON(steps.get_vars.outputs.MODULE_JSON).download}}
run: |
# Validate that the tag being released matches the package version.
if [[ ! $TAG_NAME == release-$PACKAGE_VERSION ]]; then
if [[ ! $TAG_NAME == v$PACKAGE_VERSION ]]; then
echo "The module.json version does not match tag name."
echo "module.json: $PACKAGE_VERSION"
echo "module.json: v$PACKAGE_VERSION"
echo "tag name: $TAG_NAME"
echo "Please fix this and push the tag again."
exit 1
Expand Down

0 comments on commit 9ec9578

Please sign in to comment.