Skip to content

Commit

Permalink
Validate version and tag match during release (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt authored Feb 20, 2024
1 parent 9fb6bda commit e84e2e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
- name: Log tag name
run: echo "Build for tag ${{ github.ref_name }}"

- name: Validate tag and version
run: |
make suave
version=$(./build/bin/suave-geth version | grep '^Version:' | awk -F': ' '{print "v" $2}')
if [ "$version" != "${{ github.ref_name }}" ]; then
echo "Version mismatch: $version != ${{ github.ref_name }}"
exit 1
fi
- name: Create release
run: make release
env:
Expand Down

0 comments on commit e84e2e4

Please sign in to comment.