2019-09-05 13:13:13 +01:00
|
|
|
# act
|
|
|
|
|
|
|
|
> Execute GitHub Actions locally using Docker.
|
|
|
|
> More information: <https://github.com/nektos/act>.
|
|
|
|
|
2023-12-03 12:59:57 +00:00
|
|
|
- [l]ist the available actions:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
|
|
|
`act -l`
|
|
|
|
|
|
|
|
- Run the default event:
|
|
|
|
|
|
|
|
`act`
|
|
|
|
|
|
|
|
- Run a specific event:
|
|
|
|
|
|
|
|
`act {{event_type}}`
|
|
|
|
|
2023-12-03 12:59:57 +00:00
|
|
|
- Run a specific [a]ction:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
|
|
|
`act -a {{action_id}}`
|
|
|
|
|
2023-12-03 12:59:57 +00:00
|
|
|
- Do [n]ot actually run the actions (i.e. a dry run):
|
2019-09-05 13:13:13 +01:00
|
|
|
|
|
|
|
`act -n`
|
|
|
|
|
2023-12-03 12:59:57 +00:00
|
|
|
- Show [v]erbose logs:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
|
|
|
`act -v`
|
2023-02-21 04:08:36 +00:00
|
|
|
|
2023-12-03 12:59:57 +00:00
|
|
|
- Run a specific [W]orkflow:
|
2023-02-21 04:08:36 +00:00
|
|
|
|
|
|
|
`act push -W {{path/to/workflow}}`
|