Skip to content

Commit 65c5d9b

Browse files
jonhopper-dataengineersCortex Code
andcommitted
Remove 'v' prefix from release tag and version
Tags and releases now use bare version numbers (e.g. 1.0.4) instead of v-prefixed (v1.0.4). The changelog lookup still uses 'v' prefix since CHANGELOG.md headers are formatted as '## v1.0.4'. .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
1 parent ef04846 commit 65c5d9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
- name: Check if tag already exists
3333
id: check_tag
3434
run: |
35-
if git rev-parse --verify "refs/tags/v${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
35+
if git rev-parse --verify "refs/tags/${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
3636
echo "exists=true" >> "$GITHUB_OUTPUT"
37-
echo "Tag v${{ steps.version.outputs.version }} already exists — skipping release."
37+
echo "Tag ${{ steps.version.outputs.version }} already exists — skipping release."
3838
else
3939
echo "exists=false" >> "$GITHUB_OUTPUT"
40-
echo "Tag v${{ steps.version.outputs.version }} does not exist — will create release."
40+
echo "Tag ${{ steps.version.outputs.version }} does not exist — will create release."
4141
fi
4242
4343
- name: Extract changelog for this version
@@ -85,7 +85,7 @@ jobs:
8585
env:
8686
GH_TOKEN: ${{ github.token }}
8787
run: |
88-
gh release create "v${{ steps.version.outputs.version }}" \
88+
gh release create "${{ steps.version.outputs.version }}" \
8989
--title "${{ steps.changelog.outputs.title }}" \
9090
--notes-file /tmp/release_notes.md \
9191
--target "${{ github.sha }}"

0 commit comments

Comments
 (0)