mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Fix filename regex
This commit is contained in:
parent
0683d777ad
commit
5a12c54452
1 changed files with 1 additions and 1 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue