Kevin ABRIOUX
Kevin ABRIOUX

Reputation: 17735

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)?

Upvotes: 173

Views: 98337

Answers (1)

Samira
Samira

Reputation: 9761

You can change default time limit in two ways

Your scenario:

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

Upvotes: 300

Related Questions