mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-06-12 02:36:00 -05:00
Mimick github's webhook payload data #16
Reference in New Issue
Block a user
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 @LecrisUT on GitHub (Jun 15, 2023).
Let's say there is a new commit pushed and you want github's webhook to be delayed until other CI jobs finish running. It would be nice in this situation to mimick github's payload for that event (or at least as much as possible). That way it can be plug-and-play replacement for the services that rely on webhook integration.
This could then be the default payloads to send.
@joelwmale commented on GitHub (Jun 15, 2023):
@LecrisUT you can have this job run after other CI jobs by setting the needs variable of the job? See documentation here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds
I could look at getting the github payload event for whatever happened (i.e push, merge, etc), would that help?
@LecrisUT commented on GitHub (Jun 15, 2023):
Indeed that is exactly what I was trying to say in this issue.
@joelwmale commented on GitHub (Mar 28, 2024):
@LecrisUT this has been added in v2.4.0: https://github.com/joelwmale/webhook-action/tree/master?tab=readme-ov-file#action-input