已开启
feat: pytorch_ci_trigger.yml 增加 push 事件类型 #4343
kerer-sk创建于 11 天前
11 天前 添加了label:infra-tooling
11 天前 关联了看板:FrameworkPTAdapter 版本issue看板
11 天前 添加了label:triage-review
TorchNPU-Bot
11 天前 评论:
11 天前 评论:
issue待分派,添加triage-review标签


11 天前 关联了pull request:feat: pytorch_ci_trigger.yml 增加 push 事件类型
11 天前 添加了label:bot-triaged;删除了label:triage-review
TorchNPU-Bot
11 天前 评论:
11 天前 评论:
检测到当前 issue 已关联 PR,自动添加标签:bot-triaged


11 天前 将 kerer-sk 设为负责人
问题现象
现有
pytorch_ci_trigger.yml仅监听repository_dispatch的pull_request类型,上游 push 事件无法触发本 workflow。run-name 已支持 push 显示,但
on.repository_dispatch.types缺少
push。原因分析
types: [pull_request]只允许 pull_request 类型的 repository_dispatch 触发,push 类型的 dispatch 被过滤,不会启动 workflow。
修复方案
在
types数组追加push:types: [pull_request, push]
与 #4339 的差异:#4339 提议新建独立文件
pytorch_ci_trigger_push.yml,本 Issue 采用更简洁方案——复用现有 trigger,仅追加事件类型。
关联 PR
修复分支已推送到 fork: kerer-sk/pytorch:feat/ci-trigger-add-push