mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1468] Ability to run workflow by specifying a workflow file #756
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#756
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @simonw on GitHub (Nov 26, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1468
Act version
0.2.33
Feature description
I tried
actagainst my https://github.com/simonw/datasette project which has quite a few workflows. When I runact -lI get this:As you can see, I did a bad job here with my Job IDs - I have multiple duplicates.
I'd really like to be able to run a specific job by indicating the workflow file plus the job ID within that file. For example, to run my "Test in Pyodide with shot-scraper" workflow I'd like to be able to do something like this:
@KnisterPeter commented on GitHub (Nov 26, 2022):
Run act -h and read the output
@simonw commented on GitHub (Nov 27, 2022):
I had read
act -hpretty closely - the only option that looked like it might be relevant was this one:But that help string and the fact that it was called
--workflowsand mentioned "file(s)" gave me the incorrect impression that this was a way of saying "look for my YAML files in this other directory" - not "only consider the jobs in this specific YAML file".I did however just notice the following at the bottom of the
act -loutput:So it looks like the option I'm looking for does exist, but the documentation wasn't quite clear enough for me to spot it.
For anyone else who finds this issue, here's how to run a job from a specific file:
@KnisterPeter commented on GitHub (Nov 27, 2022):
Thanks for improving the docs 😊