Skip to content

Commit 69b1b63

Browse files
committed
Use flutter-version-file
1 parent e500398 commit 69b1b63

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/backward_compatibility.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,13 @@ jobs:
7272
# restore SDK constraint
7373
yq e ".environment.sdk = \"${_sdkVersion}\"" -i pubspec.yaml
7474
75-
# extract Flutter version to install later
76-
_flutterVersion=$( yq e '.environment.flutter' pubspec.yaml | sed -e 's/^>=//' | sed -e 's/-0$//' )
77-
echo "FLUTTER_VERSION=${_flutterVersion}" >> $GITHUB_ENV
78-
7975
# output for debugging
8076
cat pubspec.yaml
8177
8278
- name: Setup Flutter
8379
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
8480
with:
85-
flutter-version: ${{ env.FLUTTER_VERSION }}
81+
flutter-version-file: packages/${{ matrix.package }}/pubspec.yaml
8682
- run: flutter test
8783

8884
core:

0 commit comments

Comments
 (0)