Set default Timeout on Github action pipeline

后端 未结 1 868
挽巷
挽巷 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..timeout-minutes sets a timeout for a whole job
    • job..steps.timeout-minutes sets a timeout for a single step

    Your scenario:

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

    0 讨论(0)
提交回复
热议问题