diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4670b1ca..59822efb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,12 @@ jobs: - name: Set release version run: | - echo ${{github.ref_name}}#"release-" - ref_name=${{github.ref_name}} + # Remove "release-" prefix from github.ref_name + TAG=${{ github.ref_name#release- }} + + # Add "v" prefix to the modified tag + IMAGE_TAG=v${TAG} + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV # semantic_version=${RELEASE_BRANCH_NAME#"release-"} # echo "VERSION=v${semantic_version}" >> $GITHUB_ENV