mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-06-12 10:45:58 -05:00
[GH-ISSUE #9] Make data optional #714
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 @AnandChowdhary on GitHub (Apr 10, 2020).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/9
Currently, in entrypoint.sh#L4, data is passed regardless of whether it exists as an environment variable.
This results in the following error (https://github.com/Karuna2020/open-data/runs/575048122) in case only
WEBHOOK_URLis available as an environment variable, notdata:It would be nice if this wasn't thrown, and the POST request goes through without adding the body.
@joelwmale commented on GitHub (Aug 26, 2020):
The body input is now optional as part of v2.0.0