[GH-ISSUE #44] Add default event payloads #25

Closed
opened 2026-03-01 21:39:13 +03:00 by kerem · 3 comments
Owner

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.

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.
Author
Owner

@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.json but it's not clear the values will be empty in there.

<!-- gh-comment-id:474195193 --> @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.json` but it's not clear the values will be empty in there.
Author
Owner

@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

<!-- gh-comment-id:474599428 --> @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`
Author
Owner

@agibralter commented on GitHub (Mar 20, 2019):

Good to know, thank you @cplee!

<!-- gh-comment-id:474669642 --> @agibralter commented on GitHub (Mar 20, 2019): Good to know, thank you @cplee!
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#25
No description provided.