Rebase and retry data push in workflow
This commit is contained in:
1 parent
bb190374e3
commit
c9b8f0f972
1 file changed
+8
-1
@@ -58,4 +58,11 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
git commit -m "Update fiber data"
|
git commit -m "Update fiber data"
|
||||||
git push
|
for i in 1 2 3 4 5; do
|
||||||
|
if git pull --rebase -X theirs origin main && git push origin HEAD:main; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
git rebase --abort 2>/dev/null || true
|
||||||
|
sleep $((i * 10))
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
Reference in new issue
Block a user