From 98473611714a7f76234de9c33ad8007effd198f6 Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Tue, 20 Feb 2024 14:22:35 +0000 Subject: [PATCH] Validate version and tag match during release --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8791cea64..e06f28899 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: