Skip to content

Commit 97cf762

Browse files
riglarclaude
andcommitted
Fix GitHub Actions workflow to use correct release tag reference
The workflow was failing because it used github.ref_name which is empty for release events. Changed to use github.event.release.tag_name to correctly extract the version number and update the major version tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c0622b8 commit 97cf762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/major-release-num.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Update major release tag
2-
run-name: Update major release tag for ${{ github.ref }}
2+
run-name: Update major release tag for ${{ github.event.release.tag_name }}
33

44
on:
55
release:
@@ -22,7 +22,7 @@ jobs:
2222
2323
- name: Update tag to major version
2424
run: |
25-
VERSION=${{ github.ref_name }}
25+
VERSION=${{ github.event.release.tag_name }}
2626
MAJOR=${VERSION%%.*}
2727
2828
echo "Updating tag ${MAJOR} (source: ${VERSION}) to ${GITHUB_SHA}"

0 commit comments

Comments
 (0)