Skip to content

Commit

Permalink
Retry git pushes
Browse files Browse the repository at this point in the history
Can happen that they fail in case a PR got merged meanwhile
  • Loading branch information
infinisil committed Sep 17, 2024
1 parent b0e7489 commit 35cdd2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/endorse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ EOF
echo "$ENDORSER_ID" >> "$endorsersAskedFile"
git add "$endorsersAskedFile"
git commit -m "Update list of endorsers asked"
git push
while ! git push; do
git pull --rebase
done

gh api \
--method POST \
Expand Down
4 changes: 3 additions & 1 deletion scripts/update-voter-team.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,7 @@ done | sort > "$invitedFile"
git add scripts/invited.txt
if ! git diff --cached --exit-code; then
git commit -m "Update list of invited users"
git push
while ! git push; do
git pull --rebase
done
fi

0 comments on commit 35cdd2f

Please sign in to comment.