[CI] Skip some workflows on forked repositories#78713
[CI] Skip some workflows on forked repositories#78713SigureMo merged 2 commits intoPaddlePaddle:developfrom
Conversation
Signed-off-by: ooooo <3164076421@qq.com>
|
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Pull request overview
This PR updates several GitHub Actions workflows to skip running resource-consuming jobs when the workflows execute in non-PaddlePaddle (forked) repositories, reducing unnecessary CI usage on forks while keeping behavior unchanged for the upstream repo.
Changes:
- Add a repository-owner gate to the first job in
Coverage.ymlto prevent the coverage pipeline from running on forks. - Gate the reusable
check-bypassjob inCheckPRTemplate.ymlandApproval.ymlso the dependent jobs are skipped on forks.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/Coverage.yml | Adds job-level condition to skip the initial “check file paths” job on forks, which cascades to skip the workflow. |
| .github/workflows/CheckPRTemplate.yml | Gates the check-bypass reusable-workflow job to avoid running the template check workflow on forks. |
| .github/workflows/Approval.yml | Gates the check-bypass reusable-workflow job to avoid running approval checks on forks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SigureMo
left a comment
There was a problem hiding this comment.
目前确定其他流水线没有需要补充的了吗?
以及,确定跳过 check-bypass 能正确跳过后续流水线吗?
(非 Agent 回复)还发现两个使用
(非 Agent 回复)是的,确认了,跳过前置的任务,后续依赖它的任务也会跳过,在 https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-jobs#defining-prerequisite-jobs 中看见 |
|
coverage test 有毒啊 |
PR Category
Environment Adaptation
PR Types
Others
Description
.github/workflows/Coverage.yml流水线需要机器,在第一个 job 进行判断.github/workflows/CheckPRTemplate.yml也是需要机器,同样第一个 job 判断跳过.github/workflows/Approval.yml作为主仓库的 approve,在 fork 仓库作用不大,也加上了判断是否引起精度变化
否