[GH-ISSUE #1097] Issue: Workflows without a push trigger are hidden #630

Closed
opened 2026-03-01 21:45:05 +03:00 by kerem · 2 comments
Owner

Originally created by @davfsa on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1097

System information

  • Operating System: Linux
  • Architecture: x64
  • Apple M1: no
  • Docker version: 20.10.14
  • Docker image used in act: middle
  • act version: 0.2.26

Expected behaviour

When running act -l or act --graph, all workflows are shown

Actual behaviour

Only workflows which are triggered by push (can be alone or along with other events) are shown.

Workflow and/or repository

Look in logs

Steps to reproduce

Look at logs

Log
$ cat .github/workflows/ci.yml
name: CI

on:
  workflow_dispatch:
  pull_request:

jobs:
  testing:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3


$ act -l
Stage  Job ID  Job name  Workflow name  Workflow file  Events

# Edit to add push trigger

$ cat .github/workflows/ci.yml
name: CI

on:
  workflow_dispatch:
  pull_request:
  push:

jobs:
  testing:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
        
$ act -l
Stage  Job ID   Job name  Workflow name  Workflow file  Events           
0      linting  linting   CI             ci.yml         workflow_dispatch,pull_request,push
Originally created by @davfsa on GitHub (Mar 31, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1097 ## System information - Operating System: Linux - Architecture: x64 - Apple M1: no - Docker version: 20.10.14 - Docker image used in `act`: middle - `act` version: 0.2.26 ## Expected behaviour When running `act -l` or `act --graph`, all workflows are shown ## Actual behaviour Only workflows which are triggered by `push` (can be alone or along with other events) are shown. ## Workflow and/or repository Look in logs ## Steps to reproduce Look at logs <details> <summary>Log</summary> ```console $ cat .github/workflows/ci.yml name: CI on: workflow_dispatch: pull_request: jobs: testing: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 $ act -l Stage Job ID Job name Workflow name Workflow file Events # Edit to add push trigger $ cat .github/workflows/ci.yml name: CI on: workflow_dispatch: pull_request: push: jobs: testing: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 $ act -l Stage Job ID Job name Workflow name Workflow file Events 0 linting linting CI ci.yml workflow_dispatch,pull_request,push ``` </details>
kerem 2026-03-01 21:45:05 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@KnisterPeter commented on GitHub (Mar 31, 2022):

You have to run act -l <event-name>. The default is push if no even name is given.
To be more clear here, it is expected behavior to list only workflows for the given event.

<!-- gh-comment-id:1084545614 --> @KnisterPeter commented on GitHub (Mar 31, 2022): You have to run `act -l <event-name>`. The default is `push` if no even name is given. To be more clear here, it is expected behavior to list only workflows for the given event.
Author
Owner

@davfsa commented on GitHub (Mar 31, 2022):

Thanks for the quick response!

<!-- gh-comment-id:1084546590 --> @davfsa commented on GitHub (Mar 31, 2022): Thanks for the quick response!
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#630
No description provided.