tldr/pages.zh/common/act.md

33 lines
449 B
Markdown
Raw Normal View History

# act
> 使用 Docker 本地运行 GitHub Actions.
> 更多信息:<https://github.com/nektos/act>.
- 列出可用的 actions 清单:
`act -l`
2022-03-27 06:25:15 +01:00
- 运行默认 event
`act`
2022-03-27 06:25:15 +01:00
- 运行指定 event
`act {{event_type}}`
2022-03-27 06:25:15 +01:00
- 运行指定 action
`act -a {{action_id}}`
- 非实际运行 actions也就是 dry-run 模式):
`act -n`
- 展示详细记录:
`act -v`
- 运行指定 workflow
`act push -W {{workflow 的路径}}`