act/cmd
Alex Savchuk 21484b5c1e
fix: show workflow info even if on.push is not defined (#1329) (#1335)
* 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
2022-09-29 05:59:52 +00:00
..
graph.go Add `super-linter` + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
input.go feat: add option to bypass GHE for actions checkout (#1162) 2022-06-21 13:52:21 +00:00
list.go feat: improve list (#786) 2021-08-30 15:38:03 +00:00
platforms.go feat: add ubuntu-22.04 (#1150) 2022-05-17 19:11:33 +00:00
root.go fix: show workflow info even if on.push is not defined (#1329) (#1335) 2022-09-29 05:59:52 +00:00
secrets.go fix: print line after password prompt (#1014) 2022-02-25 16:47:49 +00:00