diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1fc5915dd..b8b8d9071 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -496,6 +496,11 @@ jobs: - name: Read Flutter version id: flutter-ver + # Windows runners default to PowerShell, where the bash-style + # $(...) command substitution and $GITHUB_OUTPUT do not work. Without + # this the version output is empty and subosito installs the latest + # stable Flutter instead of the pinned version. See flutter-version.txt. + shell: bash run: echo "version=$(cat ${{ env.FLUTTER_VERSION_FILE }})" >> "$GITHUB_OUTPUT" - uses: subosito/flutter-action@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b36ae6796..e84a2e683 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -319,6 +319,11 @@ jobs: - name: Read Flutter version id: flutter-ver + # Windows runners default to PowerShell, where the bash-style + # $(...) command substitution and $GITHUB_OUTPUT do not work. Without + # this the version output is empty and subosito installs the latest + # stable Flutter instead of the pinned version. See flutter-version.txt. + shell: bash run: echo "version=$(cat ${{ env.FLUTTER_VERSION_FILE }})" >> "$GITHUB_OUTPUT" - name: Setup Flutter