'Set default Timeout on Github action pipeline
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)?
Solution 1:[1]
You can change default time limit in two ways
job.<id>.timeout-minutessets a timeout for a whole jobjob.<id>.steps.timeout-minutessets a timeout for a single step
Your scenario:
my-job:
runs-on: ubuntu-latest
timeout-minutes: 30
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Samira |
