Set default Timeout on Github action pipeline
Continuous IntegrationYamlGithub ActionsContinuous Integration Problem Overview
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)?
Continuous Integration Solutions
Solution 1 - Continuous Integration
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 step
Your scenario:
my-job:
runs-on: ubuntu-latest
timeout-minutes: 30