Skip to content

Commit 91c7103

Browse files
committed
Get checked-in sdk version directly
1 parent ae437a2 commit 91c7103

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ jobs:
4444
python3 sdk/tools/generate_package_config.py
4545
python3 sdk/tools/generate_sdk_version_file.py
4646
47-
cd sdk
48-
gclient getdep --var sdk_tag | tr : = | tee -a $GITHUB_OUTPUT
47+
48+
tee /tmp/version.dart <<'EOF'
49+
import 'dart:io' show Platform;
50+
51+
void main() {
52+
print('version=' + Platform.version.split(' ')[0]);
53+
}
54+
EOF
55+
sdk/tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a $GITHUB_OUTPUT
4956
5057
- name: Patch Dart SDK 2.19
5158
if: startsWith(inputs.ref, '2.19.')

0 commit comments

Comments
 (0)