2020-11-04 20:12:56 +00:00
|
|
|
|
# act
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 使用 Docker 本地运行 GitHub Actions.
|
2021-08-31 08:13:49 +01:00
|
|
|
|
> 更多信息:<https://github.com/nektos/act>.
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 列出可用的 actions 清单:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act -l`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 运行默认 event:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 运行指定 event:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act {{事件类型}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 运行指定 action:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act -a {{action_id}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 非实际运行 actions(也就是 dry-run 模式):
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act -n`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 展示详细记录:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
|
|
`act -v`
|