-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry for failed pushes #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's give this a try!
git push origin main || | ||
(echo "Failed on the first try, rebasing and pushing again" && git pull --rebase git && push origin main) || | ||
(echo "Failed on the second try, rebasing and pushing again" && git pull --rebase git && push origin main) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&&
not at the right place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes they call me eagle eye
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh good catch, thanks a lot!
git push origin master | ||
git push origin main || | ||
(echo "Failed on the first try, rebasing and pushing again" && git pull --rebase && git push origin master) || | ||
(echo "Failed on the second try, rebasing and pushing again" && git pull --rebase && git push origin master) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master or main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename all those masters to main already ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename transformers
' master
branch to main
on Monday? 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's goooooooooooooooooooooooooooo!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necessary changes for the doc moon-landing:
https://github.com/huggingface/moon-landing/pull/2409
huggingface/doc-build#6
This PR changes the doc building jobs to try to rebase and push again if the first push fails.