已开启
feat(ci): 新增 pytorch_ci_trigger_pr.yml 接收 pull_request 事件并重命名 push 触发工作流 #4509
kerer-sk创建于  5 天前
kerer-sk
kerer-sk成员
5 天前 创建

需求背景

当前 pytorch_ci_trigger.yml 仅接收 repository_dispatch 的 push 事件。为区分 push 与 pull_request 两类触发链路,需要新增独立的 PR 触发工作流,并将原 push 触发工作流重命名以明确语义。

功能描述

  1. 新增 .github/workflows/pytorch_ci_trigger_pr.yml
    • 接收 repository_dispatch: types: [pull_request] 事件
    • concurrency group: ci-{repository.full_name}-{pull_request.number || run_id},同一 PR 重复触发自动取消,cancel-in-progress: true
    • run-name 显示 PR 编号
    • forward 复用 receive-trigger.yml@ci-test,透传 event_type 和 payload
  2. 重命名 pytorch_ci_trigger.ymlpytorch_ci_trigger_push.yml
    • workflow name 同步改为 PyTorch CI Trigger Push
  3. 更新 README.md / README.zh.md 中的 CI badge 引用

关联 PR

修复分支已推送到 fork: kerer-sk/pytorch:feat/ci-trigger-pr-workflow

likedislike
kerer-skkerer-sk成员
5 天前 添加了label:infra-tooling
TorchNPU-BotTorchNPU-Bot成员
5 天前 添加了label:triage-review
TorchNPU-Bot
TorchNPU-Bot成员
5 天前 评论:

issue待分派,添加triage-review标签

likedislike
kerer-skkerer-sk成员
5 天前 关联了pull request:feat: 新增 pytorch_ci_trigger_pr.yml 接收 pull_request 事件并重命名 push 触发工作流
TorchNPU-BotTorchNPU-Bot成员
5 天前 添加了label:bot-triaged;删除了label:triage-review
TorchNPU-Bot
TorchNPU-Bot成员
5 天前 评论:

检测到当前 issue 已关联 PR,自动添加标签:bot-triaged

likedislike