mirror of
https://github.com/TSRBerry/unstable-commands.git
synced 2026-08-17 20:58:12 -04:00
A GitHub Action to retry commands if weird things happen.
- TypeScript 81.4%
- JavaScript 18.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5 to 6. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v5...v6) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
| .github | ||
| src | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .markdownlint.json | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc.json | ||
| action.yml | ||
| CODEOWNERS | ||
| eslint.config.mjs | ||
| jest.config.js | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
Unstable commands
A GitHub Action to retry commands if weird things happen.
Inputs
commands
Required:
The commands to run.
Use this like the run keyword for steps.
timeout-minutes
Required:
Maximum number of minutes to wait for the commands to finish execution.
Use this like the timeout-minutes keyword for steps.
retry-codes
Required: A comma-separated value containing the exit codes which should cause a retry.
shell
Optional:
The shell to use to run the commands.
Use this like the shell keyword for steps.
Default: "default-shell".
working-directory
Optional:
The working directory where the commands are executed in.
Use this like the working-directory keyword for steps.
Default: ${{ github.workspace }}.
max-retries
Optional: Maximum amount of times the specified commands should be tried before giving up.
Default: "3".
Example usage
uses: TSRBerry/unstable-commands@v1
with:
commands: |
echo "Hello!"
sleep 2m
echo "Bye!"
timeout-minutes: "3"
retry-codes: "1,2,139"