mirror of
https://github.com/tiennm99/awesome-coding-agents.git
synced 2026-09-03 18:16:16 +00:00
fix(workflow): rebase-retry on push to handle concurrent run races
This commit is contained in:
@@ -46,4 +46,10 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "chore: daily ranking refresh"
|
||||
git push
|
||||
# rebase + retry guards against the race where two runs commit near-simultaneously
|
||||
for attempt in 1 2 3; do
|
||||
if git push; then exit 0; fi
|
||||
echo "push attempt $attempt rejected, rebasing on origin/main"
|
||||
git pull --rebase origin main
|
||||
done
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user