You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Git push with retry
v1.0.1
An action that tries to make a git push
. If it does not succeed, then wait some time, perform git pull --rebase
and try again.
The number of maximum tries is controllable via tries
input.
- name: Try pushing
uses: greboid/action-git-try-push@v1
with:
# Optional, used for pushing
token: ${{github.token}}
# Optional, defaults to current directory
directory: path/to/repo
# Optional, defaults to:
remote: origin
# Optional, defaults to:
branch: master
# Optional, defaults to:
tries: 20