Skip to content

Commit 90a7861

Browse files
authored
Update build.yml
1 parent 3ce47e0 commit 90a7861

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,8 @@ jobs:
5252
- name: Get Checked-in Dart SDK Version
5353
id: version
5454
run: |
55-
tee /tmp/version.dart <<'EOF'
56-
import 'dart:io' show Platform;
57-
void main() {
58-
print('version=' + Platform.version.split(' ')[0]);
59-
}
60-
EOF
61-
dart-sdk/sdk/tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a "$GITHUB_OUTPUT"
55+
cd dart-sdk/sdk
56+
echo "version=$(cat tools/sdks/dart-sdk/version)" | tee -a "$GITHUB_OUTPUT"
6257
6358
- name: Fetch Checked-in Dart SDK
6459
run: |

0 commit comments

Comments
 (0)