GitHub动作工作的一般超时
我知道可以使用Proprety 超时分钟
为单个作业设置超时。
例如:
name: Spawn cluster
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 600
steps:
- name: CHECKOUT
uses: actions/checkout@v2
- name: AZURE LOGIN
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
但是,就我而言,有成千上万的工作定义,这种方法确实很难实施。
是否有某种方法可以为我的自托管代理中的所有工作配置一般的超时门槛?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,目前这是不可能的。您只能设置超时和 nofollow noreferrer“> step level 。但是,无法为完整的工作流或几个工作流程设置超时。但是,已经存在在Github上进行了一个开放的讨论。
Unfortunately, this is not possible at the moment. You can only set the timeout individually at job and step level. However, the timeout can't be set for a complete workflow or several workflows. However, there is already an open discussion about this on GitHub.