Skip to content

Commit 87ef087

Browse files
committed
fix version extraction regex to match changelog format
The changelog uses "#### Version - X.X.X.X - MM/DD/YYYY" format with dashes around the version number. Updated regex to include the dash separator.
1 parent 31f928b commit 87ef087

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Extract Version
2626
run: |
2727
$content = Get-Content "CHANGELOG.md" -Raw
28-
if ($content -match "#### Version\s+([\d.]+)") {
28+
if ($content -match "#### Version\s+\-\s+([\d.]+)") {
2929
$version = $matches[1]
3030
Write-Host "Version: $version"
3131
echo "VERSION=$version" >> $env:GITHUB_ENV

0 commit comments

Comments
 (0)