* fix: show workflow info even if on.push is not defined (#1329) To fix listing of workflows in such cases list/graph filtering was split with planning. Now act supports one of the following list (-l)/graph (-g) cases: * show all jobs of loaded workflows: act -l * show specific job JOBNAME: act -l -j JOBNAME * show jobs of loaded workflows in which event EVENTNAME is set up: act -l EVENTNAME * show jobs of loaded workflows in which first defined workflow event is set up: act -l --detect-event For planning it supports: * running specific job JOBNAME with triggered event determined from: ** CLI argument: act -j JOBNAME EVENTNAME ** first defined in loaded workflows event: act -j JOBNAME --detect-event ** only defined in loaded workflows event: act -j JOBNAME ** push event by default: act -j JOBNAME * running jobs of loaded workflows in which event is set up, event is determined from: ** CLI argument: act EVENTNAME ** first defined in loaded workflows event: act --detect-event ** only defined in loaded workflows event: act ** push event by default: act Except #1329 this PR fixes #1332, #1318 * Update docs/help
This commit is contained in:
@@ -128,13 +128,17 @@ Download the [latest release](https://github.com/nektos/act/releases/latest) and
|
||||
# Command structure:
|
||||
act [<event>] [options]
|
||||
If no event name passed, will default to "on: push"
|
||||
If actions handles only one event it will be used as default instead of "on: push"
|
||||
|
||||
# List the actions for the default event:
|
||||
# List all actions for all events:
|
||||
act -l
|
||||
|
||||
# List the actions for a specific event:
|
||||
act workflow_dispatch -l
|
||||
|
||||
# List the actions for a specific job:
|
||||
act -j test -l
|
||||
|
||||
# Run the default (`push`) event:
|
||||
act
|
||||
|
||||
|
Reference in New Issue
Block a user