ci: 仅 main 分支执行 CI/CD #1
Reference in New Issue
Block a user
Delete Branch "codex/main-only-cicd"
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?
将 CI/CD 限制为 main 分支:push 仅匹配 main,移除 pull_request 触发,手动工作流的任务只允许 refs/heads/main。保留既有路径过滤、runner、任务步骤及原有确认条件。相关工作流 README 同步更新。
验证:YAML 解析、触发事件与任务条件静态检查、git diff --check 通过。未运行本地构建或手动触发远程构建。
工作分支:codex/main-only-cicd;目标分支:main。等待用户手动合并。
已存在的 CI 测试失败另行修复,本 PR 仅调整触发范围。