Skip to content

Commit 1950f09

Browse files
cfsmp3claude
andcommitted
fix(workflow): Extract only numeric version for MSI
MSI version numbers must be numeric (major.minor.build format). Strip everything after the first dash from tag names to get valid version numbers (e.g., v1.08-test becomes 1.08). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 1fc5ec0 commit 1950f09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
uses: actions/checkout@v6
2323
- name: Get the version
2424
id: get_version
25-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
25+
run: |
26+
# Extract version from tag, strip 'v' prefix and everything after first dash
27+
VERSION=${GITHUB_REF/refs\/tags\/v/}
28+
VERSION=${VERSION%%-*}
29+
echo ::set-output name=VERSION::$VERSION
2630
shell: bash
2731
- name: Setup MSBuild.exe
2832
uses: microsoft/[email protected]

0 commit comments

Comments
 (0)