You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GitHub workflow_run.conclusion随机返回空字符串问题求助

GitHub Workflow Run事件中conclusion字段随机为空的问题

自7月21日起,我的GitHub工作流中的github.event.workflow_run.conclusion字段开始随机返回空字符串(概率约三分之一),此前从未出现该情况。

我通过GitHub Action实现工作流失败时发送通知,配置如下:

on:
  workflow_run:
    # List of workflows where a failure would trigger notifications
    workflows:
      - "This Workflow"
      - "That Workflow"
    branches: [main]
    types:
      - completed

jobs:
  notification:
    if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success'
    ... -> send a notification

近期成功的工作流也触发了通知,经排查发现该字段有时为空字符串,但GitHub Actions页面显示工作流状态为success。请问GitHub侧是否有相关变更?我未在官方文档中找到相关更新。

补充:根据官方文档,conclusion的枚举值不包含空字符串,其可选值对应中文为:

  • 需要操作(action_required)
  • 已取消(cancelled)
  • 失败(failure)
  • 中立(neutral)
  • 成功(success)
  • 已跳过(skipped)
  • 已失效(stale)
  • 已超时(timed_out)

内容的提问来源于stack exchange,提问作者David Gourde

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.24 23:33:22