diff --git a/.github/workflows/release-relayer.yml b/.github/workflows/release-relayer.yml index 6d37ea763e..7c0df4c30c 100644 --- a/.github/workflows/release-relayer.yml +++ b/.github/workflows/release-relayer.yml @@ -63,9 +63,9 @@ jobs: - name: Determine new version id: new_version run: | - # Get the most recent tag in the format relayer-- - current_tag=$(git tag --list "relayer-*" --sort=-v:refname | head -n 1) - current_version=$(git tag --list "relayer-*" --sort=-v:refname | head -n 1 | sed -E 's/relayer-//') + # Get the most recent tag in the format relayer-v + current_tag=$(git tag --list "relayer-v*" --sort=-v:refname | head -n 1) + current_version=$(git tag --list "relayer-v*" --sort=-v:refname | head -n 1 | sed -E 's/relayer-v//') echo "Current version: $current_version" # If there is no current version, set it to 1.0.0 @@ -82,7 +82,7 @@ jobs: - name: Create new tag id: create_tag run: | - tag_name="relayer-${{ steps.new_version.outputs.version }}" + tag_name="relayer-v${{ steps.new_version.outputs.version }}" echo "Tag name: $tag_name" echo "tag=$tag_name" >> $GITHUB_OUTPUT git tag $tag_name