已开启
feat(ci): 新增 pytorch_ci_trigger_pr.yml 接收 pull_request 事件并重命名 push 触发工作流 #4509
kerer-sk创建于 5 天前
5 天前 添加了label:infra-tooling
5 天前 添加了label:triage-review
TorchNPU-Bot
5 天前 评论:
5 天前 评论:
issue待分派,添加triage-review标签


5 天前 关联了pull request:feat: 新增 pytorch_ci_trigger_pr.yml 接收 pull_request 事件并重命名 push 触发工作流
5 天前 添加了label:bot-triaged;删除了label:triage-review
TorchNPU-Bot
5 天前 评论:
5 天前 评论:
检测到当前 issue 已关联 PR,自动添加标签:bot-triaged


需求背景
当前
pytorch_ci_trigger.yml仅接收 repository_dispatch 的 push 事件。为区分 push 与 pull_request 两类触发链路,需要新增独立的 PR 触发工作流,并将原 push 触发工作流重命名以明确语义。功能描述
.github/workflows/pytorch_ci_trigger_pr.yml:repository_dispatch: types: [pull_request]事件ci-{repository.full_name}-{pull_request.number || run_id},同一 PR 重复触发自动取消,cancel-in-progress: truereceive-trigger.yml@ci-test,透传 event_type 和 payloadpytorch_ci_trigger.yml→pytorch_ci_trigger_push.yml:PyTorch CI Trigger Push关联 PR
修复分支已推送到 fork: kerer-sk/pytorch:feat/ci-trigger-pr-workflow