GitHub Actions: Retrying a failing step
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