From 88c7c86dcd50ed414f24cd90f8f761906915e962 Mon Sep 17 00:00:00 2001 From: Darren Kelly <107671032+darrenvechain@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:31:11 +0100 Subject: [PATCH] fix docker release action (#704) * Update on-release.yaml (#703) * Update on-release.yaml --- .github/workflows/on-release.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml index 2b4007dd4..ad05dfa49 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 @@ -56,5 +59,5 @@ jobs: ${{ github.repository }} ghcr.io/${{ github.repository }} tags: | - type=raw,value=${{ github.event.release.tag_name }} + type=raw,value=${{ github.ref_name }} type=raw,value=latest