From fce0a17deb061e28e07c3cc25b830f800da79c41 Mon Sep 17 00:00:00 2001 From: Darren Kelly <107671032+darrenvechain@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:25:59 +0100 Subject: [PATCH] Update on-release.yaml (#703) * Update on-release.yaml * Update on-release.yaml --- .github/workflows/on-release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml index 2b4007dd4..588855668 100644 --- a/.github/workflows/on-release.yaml +++ b/.github/workflows/on-release.yaml @@ -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