Set default Timeout on Github action pipeline

后端 未结 1 845
挽巷
挽巷 2021-01-04 04:58

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

相关标签:
1条回答
  • 2021-01-04 05:29

    You can change default time limit in two ways

    • job.<id>.timeout-minutes sets a timeout for a whole job
    • job.<id>.steps.timeout-minutes sets a timeout for a single step

    Your scenario:

    my-job:
     runs-on:         ubuntu-latest
     timeout-minutes: 30
    
    0 讨论(0)
提交回复
热议问题