diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e45051b47..831f19180 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,7 +88,7 @@ jobs: id: extract_version run: | $file = Get-ChildItem drop -Filter "Greenshot-INSTALLER-*.exe" | Select-Object -First 1 - if ($file -match "Greenshot-INSTALLER-([\d\.]+)\.exe") { + if ($file -match "Greenshot-INSTALLER-([\d\.]+).*\.exe") { echo "::set-output name=version::$($matches[1])" } else { throw "Version number could not be extracted from file name."