Skip to content

Commit

Permalink
Update on-release.yaml (#703)
Browse files Browse the repository at this point in the history
* Update on-release.yaml

* Update on-release.yaml
  • Loading branch information
darrenvechain authored Apr 17, 2024
1 parent f9e6ba4 commit fce0a17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: Validate VERSION
run: |
if [ "$(cat cmd/thor/VERSION)" != "${{ github.ref_name }}" ]; then
version=$(cat cmd/thor/VERSION)
tag="${{ github.ref_name }}"
tag="${tag#v}" # Remove the "v" prefix from the tag
if [ "$tag" != "$version" ]; then
echo "VERSION file does not match tag"
exit 1
fi
Expand Down

0 comments on commit fce0a17

Please sign in to comment.