47
votes

Normally, my pipelines take 15 minutes to execute.

Recently, for some strange reasons, some pipelines take between 45 minutes and 6 hours to fail.

My question is: Is it possible to set a default timeout limit on Github Action's pipeline (for example, auto cancel after 30 minutes)?

1

1 Answers

75
votes

You can change default time limit in two ways

Your scenario:

my-job:
 runs-on:         ubuntu-latest
 timeout-minutes: 30