2019-09-05 13:13:13 +01:00
|
|
|
# act
|
|
|
|
|
|
|
|
> Execute GitHub Actions locally using Docker.
|
2025-03-28 05:26:23 +02:00
|
|
|
> More information: <https://manned.org/act>.
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- List the available jobs:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`act {{[-l|--list]}}`
|
2019-09-05 13:13:13 +01:00
|
|
|
|
|
|
|
- Run the default event:
|
|
|
|
|
|
|
|
`act`
|
|
|
|
|
|
|
|
- Run a specific event:
|
|
|
|
|
|
|
|
`act {{event_type}}`
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run a specific job:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`act {{[-j|--job]}} {{job_id}}`
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2023-12-03 19:59:57 +07:00
|
|
|
- Do [n]ot actually run the actions (i.e. a dry run):
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`act {{[-n|--dryrun]}}`
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show verbose logs:
|
2019-09-05 13:13:13 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`act {{[-v|--verbose]}}`
|
2023-02-21 05:08:36 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Run a specific workflow with the push event:
|
2023-02-21 05:08:36 +01:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`act push {{[-W|--workflows]}} {{path/to/workflow}}`
|