mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #44] Add default event payloads #25
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#25
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 @mcolyer on GitHub (Feb 26, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/44
It would be nice if the default event payloads reflected the example ones provided on developer.github.com. I've pulled together the current set here: https://github.com/mcolyer/actions-toolkit-action/tree/master/fixtures.
I still think it's helpful to have a flag to override the payload (ie
-e), as sometimes you want to change a specific payload but I figured a default would be helpful.@agibralter commented on GitHub (Mar 19, 2019):
Ah, I was just surprised by this as well. I forgot my action relied on a payload and it took me a minute to figure out why it blew up. The README seems to suggest the filesystem will be set up with
/github/workflow/event.jsonbut it's not clear the values will be empty in there.@cplee commented on GitHub (Mar 19, 2019):
@agibralter in the meantime, you can pass your own event file with
act -e path/to/event.json@agibralter commented on GitHub (Mar 20, 2019):
Good to know, thank you @cplee!