Skip to content

Commit 7982225

Browse files
authored
Merge pull request #281 from submersion-app/fix/windows-ci-flutter-version-pin
fix(ci): honor pinned Flutter version on Windows runners
2 parents cef3344 + 73a0882 commit 7982225

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ jobs:
496496

497497
- name: Read Flutter version
498498
id: flutter-ver
499+
# Windows runners default to PowerShell, where the bash-style
500+
# $(...) command substitution and $GITHUB_OUTPUT do not work. Without
501+
# this the version output is empty and subosito installs the latest
502+
# stable Flutter instead of the pinned version. See flutter-version.txt.
503+
shell: bash
499504
run: echo "version=$(cat ${{ env.FLUTTER_VERSION_FILE }})" >> "$GITHUB_OUTPUT"
500505

501506
- uses: subosito/flutter-action@v2

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ jobs:
319319

320320
- name: Read Flutter version
321321
id: flutter-ver
322+
# Windows runners default to PowerShell, where the bash-style
323+
# $(...) command substitution and $GITHUB_OUTPUT do not work. Without
324+
# this the version output is empty and subosito installs the latest
325+
# stable Flutter instead of the pinned version. See flutter-version.txt.
326+
shell: bash
322327
run: echo "version=$(cat ${{ env.FLUTTER_VERSION_FILE }})" >> "$GITHUB_OUTPUT"
323328

324329
- name: Setup Flutter

0 commit comments

Comments
 (0)