在 Github 操作管道上设置默认超时 [英] Set default Timeout on Github action pipeline

查看:22
本文介绍了在 Github 操作管道上设置默认超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我的管道需要 15 分钟才能执行.

Normally, my pipelines take 15 minutes to execute.

最近,由于一些奇怪的原因,一些管道需要 45 分钟到 6 小时才能失效.

Recently, for some strange reasons, some pipelines take between 45 minutes and 6 hours to fail.

是否可以在 GitHub Action 的管道上设置默认超时限制(例如,30 分钟后自动取消)?

Is it possible to set a default timeout limit on GitHub Action's pipeline (for example, auto cancel after 30 minutes)?

推荐答案

您可以通过两种方式更改默认时间限制

You can change default time limit in two ways

你的场景:

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

这篇关于在 Github 操作管道上设置默认超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆