tldr/pages/common/act.md

33 lines
458 B
Markdown
Raw Normal View History

2019-09-05 13:13:13 +01:00
# act
> Execute GitHub Actions locally using Docker.
> More information: <https://github.com/nektos/act>.
- [l]ist the available jobs:
2019-09-05 13:13:13 +01:00
`act -l`
- Run the default event:
`act`
- Run a specific event:
`act {{event_type}}`
- Run a specific [j]ob:
2019-09-05 13:13:13 +01:00
`act -j {{job_id}}`
2019-09-05 13:13:13 +01:00
- Do [n]ot actually run the actions (i.e. a dry run):
2019-09-05 13:13:13 +01:00
`act -n`
- Show [v]erbose logs:
2019-09-05 13:13:13 +01:00
`act -v`
- Run a specific [W]orkflow with the push event:
`act push -W {{path/to/workflow}}`