| push/pull_request | branches、paths 过滤 |
|---|---|
| 手动 | workflow_dispatch |
| 定时 | schedule(UTC cron) |
| 组合 | 多个事件取并集触发 |
多事件配置
多事件配置
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:fork 仓库的 pull_request 默认不向发起方暴露 secrets:安全模型以此为前提。
常用触发:push、pull_request、workflow_dispatch(手动)、schedule(定时)、release;均可附加分支、路径与类型过滤。
| push/pull_request | branches、paths 过滤 |
|---|---|
| 手动 | workflow_dispatch |
| 定时 | schedule(UTC cron) |
| 组合 | 多个事件取并集触发 |
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: