Fix filename regex

This commit is contained in:
jklingen 2025-04-21 15:49:56 +02:00 committed by GitHub
commit 5a12c54452
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."