Skip to content

Commit

Permalink
Validate version and tag match during release
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Feb 20, 2024
1 parent 3f6d8ef commit 9847361
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 9847361

Please sign in to comment.