fix(ci): push触发只保留main/develop,根治PR双触发重复run #425
Reference in New Issue
Block a user
Delete Branch "fix/ci-dual-trigger-dedup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
PR分支push代码时,同时触发
on.push和on.pull_request两个事件,产生重复run,浪费runner资源。方案A(根治)
push.branches移除所有 feature/feat/bugfix/fix/hotfix/release/refactor/perf/docs/chore/ci 等通配符分支main和develop的push触发pull_request事件触发,不再重复影响
验证
CI全绿,自动审批通过。