Skip to content

Commit 9618f40

Browse files
committed
check: Fix branch name for clone of Flutter repo in CI
Otherwise the clone doesn't know about the branch name `main`, which would confuse the logic in a check we're about to add.
1 parent 03c991c commit 9618f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# pubspec is satisfied. It's uncommon for flutter/flutter to go
2424
# more than 100 commits between tags. Fetch 1000 for good measure.
2525
run: |
26-
git clone --depth=1000 https://github.com/flutter/flutter ~/flutter
26+
git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter
2727
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
2828
echo ~/flutter/bin >> "$GITHUB_PATH"
2929

0 commit comments

Comments
 (0)