[PR #1335] [MERGED] fix: show workflow info even if on.push is not defined (#1329) #1887

Closed
opened 2026-03-01 21:53:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1335
Author: @alex-savchuk
Created: 9/8/2022
Status: Merged
Merged: 9/29/2022
Merged by: @mergify[bot]

Base: masterHead: list-events


📝 Commits (2)

  • ef4508c fix: show workflow info even if on.push is not defined (#1329)
  • 25f2580 Update docs/help

📊 Changes

3 files changed (+94 additions, -31 deletions)

View changed files

📝 README.md (+5 -1)
📝 cmd/root.go (+74 -30)
📝 pkg/model/planner.go (+15 -0)

📄 Description

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:
  1. CLI argument: act -j JOBNAME EVENTNAME
  2. first defined in loaded workflows event: act -j JOBNAME --detect-event
  3. only defined in loaded workflows event: act -j JOBNAME
  4. or push event by default: act -j JOBNAME
  • running jobs of loaded workflows in which event is set up, event is determined from:
  1. CLI argument: act EVENTNAME
  2. first defined in loaded workflows event: act --detect-event
  3. only defined in loaded workflows event: act
  4. or push event by default: act

Except #1329 this PR fixes #1332, #1318


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1335 **Author:** [@alex-savchuk](https://github.com/alex-savchuk) **Created:** 9/8/2022 **Status:** ✅ Merged **Merged:** 9/29/2022 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `list-events` --- ### 📝 Commits (2) - [`ef4508c`](https://github.com/nektos/act/commit/ef4508c0bbb1cc42309f35b3583db73fd97cb2d2) fix: show workflow info even if on.push is not defined (#1329) - [`25f2580`](https://github.com/nektos/act/commit/25f258041fe3e40bebe9a981d26e73b2f049c8e4) Update docs/help ### 📊 Changes **3 files changed** (+94 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+5 -1) 📝 `cmd/root.go` (+74 -30) 📝 `pkg/model/planner.go` (+15 -0) </details> ### 📄 Description 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: 1. CLI argument: act -j JOBNAME EVENTNAME 2. first defined in loaded workflows event: act -j JOBNAME --detect-event 3. only defined in loaded workflows event: act -j JOBNAME 4. or push event by default: act -j JOBNAME * running jobs of loaded workflows in which event is set up, event is determined from: 1. CLI argument: act EVENTNAME 2. first defined in loaded workflows event: act --detect-event 3. only defined in loaded workflows event: act 4. or push event by default: act Except #1329 this PR fixes #1332, #1318 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1887
No description provided.