Set default Timeout on Github action pipeline

Continuous IntegrationYamlGithub Actions

Continuous 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

Your scenario:

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKevin ABRIOUXView Question on Stackoverflow
Solution 1 - Continuous IntegrationSamiraView Answer on Stackoverflow