Fork of TSRBerry/unstable-commands for PR checks workflow

TSR Berry 6375bc6b0d Update package version to v1.0.0 1 vuosi sitten
.github 39f4598bc4 Adjust workflows 1 vuosi sitten
dist 9a747805fc Add dist directory for v1.0.0 1 vuosi sitten
src 355d827df4 Move runUnstableCommand out of main.ts 1 vuosi sitten
tests 355d827df4 Move runUnstableCommand out of main.ts 1 vuosi sitten
.eslintignore ec2c32d2b7 Initial commit 1 vuosi sitten
.eslintrc.json ec2c32d2b7 Initial commit 1 vuosi sitten
.gitattributes ec2c32d2b7 Initial commit 1 vuosi sitten
.gitignore 3660627cba Remove template files and directories and add .nvmrc 1 vuosi sitten
.nvmrc 3660627cba Remove template files and directories and add .nvmrc 1 vuosi sitten
.prettierignore ec2c32d2b7 Initial commit 1 vuosi sitten
.prettierrc.json ec2c32d2b7 Initial commit 1 vuosi sitten
LICENSE a0c343e845 Update README.md and LICENSE 1 vuosi sitten
README.md a0c343e845 Update README.md and LICENSE 1 vuosi sitten
action.yml 937ec0d8e6 Update action.yml for unstable commands 1 vuosi sitten
jest.config.js 54f3ddc424 Add simple tests 1 vuosi sitten
package.json 6375bc6b0d Update package version to v1.0.0 1 vuosi sitten
pnpm-lock.yaml 54f3ddc424 Add simple tests 1 vuosi sitten
tsconfig.json ec2c32d2b7 Initial commit 1 vuosi sitten

README.md

unstable-commands status

Unstable commands action

An 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

The shell to use to run the commands. Use this like the shell keyword for steps. Default "default-shell".

working-directory

The working directory where the commands are executed in. Use this like the working-directory keyword for steps. Default ${{ github.workspace }}.

max-retries

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"