Skip to content
Merged
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
10 changes: 9 additions & 1 deletion .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,12 @@ jobs:
# Pushing with the default GITHUB_TOKEN does not retrigger workflows;
# [skip ci] is belt-and-suspenders. No-op stays green.
git commit -m "chore: update AFP metrics [skip ci]" || { echo "no changes"; exit 0; }
git push
# master may have advanced during the (multi-minute) run, which would
# reject the push; rebase onto the latest and retry a few times.
for attempt in 1 2 3 4 5; do
if git push; then exit 0; fi
echo "push rejected (attempt $attempt) - rebasing on origin/master ..."
git pull --rebase --autostash origin master
done
echo "failed to push metrics after retries" >&2
exit 1
Loading