Skip to content

Commit

Permalink
Get checked-in sdk version directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed May 10, 2023
1 parent ae437a2 commit 91c7103
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@ jobs:
python3 sdk/tools/generate_package_config.py
python3 sdk/tools/generate_sdk_version_file.py
cd sdk
gclient getdep --var sdk_tag | tr : = | tee -a $GITHUB_OUTPUT
tee /tmp/version.dart <<'EOF'
import 'dart:io' show Platform;
void main() {
print('version=' + Platform.version.split(' ')[0]);
}
EOF
sdk/tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a $GITHUB_OUTPUT
- name: Patch Dart SDK 2.19
if: startsWith(inputs.ref, '2.19.')
Expand Down

0 comments on commit 91c7103

Please sign in to comment.