Skip to content

Commit cf3e476

Browse files
a
1 parent e1aa735 commit cf3e476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
id: app_version
3232
run: |
3333
$content = Get-Content 'pubspec.yaml'
34-
$version = $content | Select-String 'version: (.*)' | ForEach-Object { $_.Matches.Groups[1].Value }
35-
echo "App version is $version"
36-
echo "APP_VERSION=$version" >> $GITHUB_ENV
34+
$version = $content -match 'version: (.*)' | Out-Null; $matches[1]
35+
Write-Output "App version is $version"
36+
echo "APP_VERSION=$version" >> $env:GITHUB_ENV
3737
3838
- name: Upload Windows build artifact
3939
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)