[GH-ISSUE #2031] Command line Flag to specify subset of workflows / single workflow #974

Closed
opened 2026-03-01 21:47:51 +03:00 by kerem · 1 comment
Owner

Originally created by @Charles-Schleich on GitHub (Sep 28, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2031

Act version

act version 0.2.51

Feature description

Hello, super useful tool you have written.

I'm not sure if i missed it in the docs, but it it seems that there is no easy way to run just a single workflow / subset of workflows.
adding if: ${{ !github.event.act }} # skip during local actions testing the yaml file of each workflow we dont want to run is a tedious process if you have many workflows.

Is there a simple way to specify a single workflow and run only that workflow ?

Something akin to
act --run-only myworkflow.yml or
act --run-only wf1.yml,wf2.yml,wf3.yml

Originally created by @Charles-Schleich on GitHub (Sep 28, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2031 ### Act version act version 0.2.51 ### Feature description Hello, super useful tool you have written. I'm not sure if i missed it in the docs, but it it seems that there is no easy way to run just a single workflow / subset of workflows. adding `if: ${{ !github.event.act }} # skip during local actions testing` the yaml file of each workflow we dont want to run is a tedious process if you have many workflows. Is there a simple way to specify a single workflow and run only that workflow ? Something akin to `act --run-only myworkflow.yml` or `act --run-only wf1.yml,wf2.yml,wf3.yml`
kerem 2026-03-01 21:47:51 +03:00
Author
Owner

@Charles-Schleich commented on GitHub (Sep 28, 2023):

Ah i didnt realize -W could be used for a single file,
I thought it only accepted a directory with all workflows.

act -W ./path/to/workflow.yaml

Thanks !

<!-- gh-comment-id:1738927107 --> @Charles-Schleich commented on GitHub (Sep 28, 2023): Ah i didnt realize `-W` could be used for a single file, I thought it only accepted a directory with all workflows. `act -W ./path/to/workflow.yaml` Thanks !
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#974
No description provided.