tldr/pages.zh/common/act.md

29 lines
379 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# act
> 使用 Docker 本地运行 GitHub Actions.
> 更多信息:<https://github.com/nektos/act>.
- 列出可用的 actions 清单:
`act -l`
- 运行默认 event:
`act`
- 运行指定 event:
`act {{事件类型}}`
- 运行指定 action:
`act -a {{action_id}}`
- 非实际运行 actions也就是 dry-run 模式):
`act -n`
- 展示详细记录:
`act -v`