Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/update_flutter_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,25 @@ jobs:
exit 0
fi

gh pr create \
--base "${BASE_BRANCH}" \
--head "${branch}" \
--title "chore(flutter): bump Flutter version to ${FLUTTER_VERSION}" \
--body "$(cat <<EOF
# GitHub's API can briefly lag behind a just-pushed ref, so retry
# a few times before giving up.
for attempt in 1 2 3 4 5; do
if gh pr create \
--base "${BASE_BRANCH}" \
--head "${branch}" \
--title "chore(flutter): bump Flutter version to ${FLUTTER_VERSION}" \
--body "$(cat <<EOF
## Summary
- Pin Flutter \`${FLUTTER_VERSION}\` in \`pubspec.yaml\`.
- Point \`submodules/flutter\` at tag \`${FLUTTER_VERSION}\`.
- Refresh \`pubspec.lock\` with \`flutter pub get\`.

EOF
)"
)"; then
exit 0
fi
echo "gh pr create failed (attempt ${attempt}/5); retrying in 5s..." >&2
sleep 5
done
echo "gh pr create failed after 5 attempts" >&2
exit 1
Loading