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
相关产品推荐
相关产品推荐

