Prevent Waste by Specifying timeout-minutes in GitHub Actions
I’ll introduce how to prevent waste by specifying timeout-minutes in GitHub Actions Workflow.
A maximum 6-hour timeout occurred in GitHub Actions, resulting in the following error:
The job running on runner GitHub Actions 4 has exceeded the maximum execution time of 360 minutes.
jobs:
your-job:
runs-on: ubuntu-latest
timeout-minutes: 30 # entire job
steps:
- run: sleep 300
timeout-minutes: 20 # individual step
That’s all from the Gemba on wanting to specify timeout-minutes in GitHub Actions Workflow to prevent wasteful minute quota consumption.