mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #32] Error: unsupported event: push #16
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#16
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 @sosedoff on GitHub (Feb 13, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/32
I'm playing around with an action that runs when a PR is created, however with
actcommand i'm getting this error (runningact):Example workflow file:
Im not sure why the error refers to
pushevent@sosedoff commented on GitHub (Feb 13, 2019):
Just realized that
actusespushas a default event. When i executeact pull_requesteverything works as expected.Perhaps
actcould check the workflow file for the event type and run it instead of using a defaultpushevent.@cplee commented on GitHub (Feb 14, 2019):
@sosedoff this was intentional, based on the fact that GH actions uses the
pushevent as the default as per the docs@cplee commented on GitHub (Feb 14, 2019):
I'd be open for a PR if you have something else in mind!
@sosedoff commented on GitHub (Feb 14, 2019):
Yeah, i'll experiment a bit on this front. Also, i think i had an older version of
actinstalled, once i updated it no longer printed any errors and terminated silently.@mcolyer commented on GitHub (Feb 14, 2019):
This might have been unintentional on our part. I believe we used the word default here to mean that it's the default event that is selected within the workflow editor. It doesn't really have any significance beyond that. Having support for other events in
actis definitely encouraged.@cplee commented on GitHub (Feb 14, 2019):
So
actdoes support running other events, but I do like @sosedoff suggestion. Let's keep this open and implement.@sosedoff commented on GitHub (Feb 15, 2019):
Ok so i played with workflows a bit more and realized that you can actually have more than one workflow in the same file triggered on the same event (
push). Im thinkingactcould do the following (to eliminate extra typing):oninstead of defaultpushSo if i had a workflow like this:
Running
actwould result in equivalent ofact pull_request. If there are more than one type of events defined in the workflowactwould use the existing behavior.@cplee commented on GitHub (Feb 17, 2019):
fixed with #35