mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #156] Auto-detected event might be confusing #100
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#100
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 @aidansteele on GitHub (Mar 15, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/156
This is the current logic for determining which event name to run:
github.com/nektos/act@f5e67f2b86/cmd/root.go (L112-L120)This confused me at first as I installed
act, then ranactin my terminal and it ran an unexpected workflow - I have a few different ones. I expected it to run the workflow(s) I have defined for thepushevent as per these docs:github.com/nektos/act@f5e67f2b86/README.md (L50-L51)Maybe we could update the logic to instead:
args[0]if present; orpushevent if any workflows are defined for it; orWhat do you think?
Happy to submit a PR if you're fine with this.I went ahead and submitted #157 if you're fine with this.