Fork of TSRBerry/unstable-commands for PR checks workflow

dependabot[bot] a916a5bb49 Bump typescript from 5.3.3 to 5.4.2 (#104) 8 달 전
.github cf69f65bbf Bump pnpm/action-setup from 2 to 3 (#95) 9 달 전
src 355d827df4 Move runUnstableCommand out of main.ts 1 년 전
tests 355d827df4 Move runUnstableCommand out of main.ts 1 년 전
.eslintignore ec2c32d2b7 Initial commit 1 년 전
.eslintrc.json ec2c32d2b7 Initial commit 1 년 전
.gitattributes ec2c32d2b7 Initial commit 1 년 전
.gitignore 3660627cba Remove template files and directories and add .nvmrc 1 년 전
.markdownlint.json b4820d0501 Add markdownlint config 1 년 전
.nvmrc 48212e9afc Update action runtime to lts/iron (node 20) 11 달 전
.prettierignore ec2c32d2b7 Initial commit 1 년 전
.prettierrc.json ec2c32d2b7 Initial commit 1 년 전
LICENSE a0c343e845 Update README.md and LICENSE 1 년 전
README.md 43c695b4c7 README: Add a link to step documentation for working-directory 9 달 전
action.yml 55fdba24fd Update action runtime to node20 1 년 전
jest.config.js 54f3ddc424 Add simple tests 1 년 전
package.json a916a5bb49 Bump typescript from 5.3.3 to 5.4.2 (#104) 8 달 전
pnpm-lock.yaml a916a5bb49 Bump typescript from 5.3.3 to 5.4.2 (#104) 8 달 전
tsconfig.json ec2c32d2b7 Initial commit 1 년 전

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"