Reputation: 17735
Normally, my pipelines take 15 minutes to execute.
Recently, for some strange reasons, some pipelines take between 45 minutes and 6 hours to fail.
Is it possible to set a default timeout limit on GitHub Action's pipeline (for example, auto cancel after 30 minutes)?
Upvotes: 173
Views: 98337
Reputation: 9761
You can change default time limit in two ways
job.<id>.timeout-minutes
sets a timeout for a whole jobjob.<id>.steps.timeout-minutes
sets a timeout for a single stepYour scenario:
my-job:
runs-on: ubuntu-latest
timeout-minutes: 30
Upvotes: 300