/entrypoint.sh: 4: /entrypoint.sh: data: parameter not set
It would be nice if this wasn't thrown, and the POST request goes through without adding the body.
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](https://github.com/joelwmale/webhook-action/blob/master/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_URL` is available as an environment variable, not `data`:
```
/entrypoint.sh: 4: /entrypoint.sh: data: parameter not set
```
It would be nice if this wasn't thrown, and the POST request goes through without adding the body.
<!-- gh-comment-id:680392864 -->
@joelwmale commented on GitHub (Aug 26, 2020):
The body input is now optional as part of [v2.0.0](https://github.com/joelwmale/webhook-action/releases/tag/2.0.0)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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