Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 892 Bytes

README.md

File metadata and controls

43 lines (26 loc) · 892 Bytes

retry-run-action

Simple retry script run action

Usage

The number of attempts is provided as the RETRY_RUN_ATTEMPT environment variable during script execution.

- uses: srz-zumix/retry-run-action@v0
  with:
    retry: 5
    run: |
      echo "count=${RETRY_RUN_ATTEMPT}" | tee -a "${GITHUB_OUTPUT}"
      test "${RETRY_RUN_ATTEMPT}" == 5

Inputs

retry

retry count. Default: 3

run

run script text. (require)

interval

interval seconds. Default: 5

shell

custom shell command. Default: ``

see GitHub Actions shell

Outputs

Output to GITHUB_OUTPUT is available.