Skip to content

Commit fe466a5

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

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,21 @@ 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+
import 'dart:io' show Platform;
56+
57+
void main() {
58+
print(Platform.version.split(' ')[0]);
59+
}
60+
EOF
61+
sdk/tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a $GITHUB_OUTPUT
4962
5063
- name: Patch Dart SDK 2.19
5164
if: startsWith(inputs.ref, '2.19.')

0 commit comments

Comments
 (0)