Fork of TSRBerry/unstable-commands for PR checks workflow

TSR Berry 19a9a05077 Release package version v1.0.3 hai 11 meses
.github 4ef3fca2f9 Bump actions/upload-artifact from 3 to 4 (#75) hai 11 meses
dist 19a9a05077 Release package version v1.0.3 hai 11 meses
src 355d827df4 Move runUnstableCommand out of main.ts hai 1 ano
tests 355d827df4 Move runUnstableCommand out of main.ts hai 1 ano
.eslintignore ec2c32d2b7 Initial commit hai 1 ano
.eslintrc.json ec2c32d2b7 Initial commit hai 1 ano
.gitattributes ec2c32d2b7 Initial commit hai 1 ano
.gitignore 3660627cba Remove template files and directories and add .nvmrc hai 1 ano
.markdownlint.json b4820d0501 Add markdownlint config hai 1 ano
.nvmrc 48212e9afc Update action runtime to lts/iron (node 20) hai 11 meses
.prettierignore ec2c32d2b7 Initial commit hai 1 ano
.prettierrc.json ec2c32d2b7 Initial commit hai 1 ano
LICENSE a0c343e845 Update README.md and LICENSE hai 1 ano
README.md 820df0131e Adjust README.md formatting hai 1 ano
action.yml 55fdba24fd Update action runtime to node20 hai 1 ano
jest.config.js 54f3ddc424 Add simple tests hai 1 ano
package.json 19a9a05077 Release package version v1.0.3 hai 11 meses
pnpm-lock.yaml e13204455b Update lockfileVersion from 6.0 to 6.1 hai 11 meses
tsconfig.json ec2c32d2b7 Initial commit hai 1 ano

README.md

Unstable commands

unstable-commands status

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"