A GitHub Action to retry commands if weird things happen.
Required:
The commands to run.
Use this like the run
keyword for steps.
Required:
Maximum number of minutes to wait for the commands to finish execution.
Use this like the timeout-minutes
keyword for steps.
Required: A comma-separated value containing the exit codes which should cause a retry.
Optional:
The shell to use to run the commands.
Use this like the shell
keyword for steps.
Default: "default-shell"
.
Optional:
The working directory where the commands are executed in.
Use this like the working-directory
keyword for steps.
Default: ${{ github.workspace }}
.
Optional: Maximum amount of times the specified commands should be tried before giving up.
Default: "3"
.
uses: TSRBerry/unstable-commands@v1
with:
commands: |
echo "Hello!"
sleep 2m
echo "Bye!"
timeout-minutes: "3"
retry-codes: "1,2,139"