FR: Set event payload when running locally #623
Reference in New Issue
Block a user
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?
I am running my actions locally using
act_runner
to test them as such:{"ref": "refs/tags/v1.0.0"}
is only being parsed as being the event name, not the actual payload. I have found no way to set event payload as well.This limitation makes it difficult to simulate events like:
ref
of event must be set.workflow_dispatch
events: Where setting theinputs
object is required.workflow_dispatch
is currently ignored in Gitea, but is set to release in 1.23(Dec2024) as seen in this PR.Proposed Solution:
Add an --eventpath flag, similar to what act provides (see this issue). This would allow specifying a file containing the event payload for more complex scenarios.
I would love to know is there is any way, even if hacky, to set the event payload when running locally.
Environment:
act_runner version: v0.2.8 (also tested on master built today 14.11.2024)
Testing on: macOS ARM64