Skip to content

Commit 416e5ac

Browse files
ledhed2222claude
andcommitted
Fix Windows version extraction in build workflow
Use PowerShell XML parsing instead of Maven evaluate command which outputs full POM XML on Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1bb3f59 commit 416e5ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-installers.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ jobs:
110110

111111
- name: Extract version from pom.xml
112112
id: version
113+
shell: pwsh
113114
run: |
114-
$VERSION = mvn help:evaluate -Dexpression=project.version -q -DforceStdout
115+
[xml]$pom = Get-Content pom.xml
116+
$VERSION = $pom.project.version
115117
echo "version=$VERSION" >> $env:GITHUB_OUTPUT
116118
echo "Building version: $VERSION"
117119

0 commit comments

Comments
 (0)