forgejo-runner-act/pkg/model
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
..
testdata implement volume mount for container job (#1101) 2022-04-04 18:01:13 +00:00
action.go implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
github_context.go fix: align github.ref to GitHub Action (#1362) 2022-09-26 22:49:19 +00:00
github_context_test.go fix: align github.ref to GitHub Action (#1362) 2022-09-26 22:49:19 +00:00
job_context.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
planner.go fix: show workflow info even if on.push is not defined (#1329) (#1335) 2022-09-29 05:59:52 +00:00
planner_test.go refactor: remove github.com/pkg/errors dependency (#1077) 2022-06-10 21:16:42 +00:00
step_result.go implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
workflow.go fix: support expression for step's continue-on-error field (#900) (#1331) 2022-09-08 14:20:39 +00:00
workflow_test.go fix: processing of strategy.matrix.include (#1200) 2022-06-20 15:33:07 -07:00