Skip to content

Commit b6cb0ec

Browse files
c
1 parent cf3e476 commit b6cb0ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/flutter-ci.windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
id: app_version
3232
run: |
3333
$content = Get-Content 'pubspec.yaml'
34-
$version = $content -match 'version: (.*)' | Out-Null; $matches[1]
35-
Write-Output "App version is $version"
34+
$version = $content | Select-String 'version: (.*)' | ForEach-Object { $_.Matches.Groups[1].Value }
3635
echo "APP_VERSION=$version" >> $env:GITHUB_ENV
3736
3837
- name: Upload Windows build artifact

0 commit comments

Comments
 (0)