GitHub Actions: Retrying a failing step

Posted Almost 3 years ago. Visible to the public.

If you have a flaky command you can use the nick-invision/retry Show archive.org snapshot to re-try a failing command, optionally with a timeout:

---
...
jobs:
  test:
    ...
    steps:
    - name: Run tests
      uses: nick-invision/retry@v2
      with:
        timeout_seconds: 30
        max_attempts: 3
        command: bundle exec rake spec
Henning Koch
Last edit
Almost 3 years ago
Henning Koch
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2021-06-24 11:36)