Originally created by @prescottprue on GitHub (Dec 20, 2019).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/8
Thanks for the package! It would be awesome if passing headers was supported. Maybe something like so:
```yaml
- name: Webhook
uses: joelwmale/webhook-action@master
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
data: "{'deployment': 'finished', 'project': 'actions'}"
headers: ['Some-Header: 123ASDF', 'Some-Other-Header: 123ASDF']
```
I have also seen `with` commonly used for actions since `env`:
```yaml
- name: Webhook
uses: joelwmale/webhook-action@master
with:
headers: ['Some-Header: 123ASDF']
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
data: "{'deployment': 'finished', 'project': 'actions'}"
```
yes, this would be cool. Along those lines, what about authentication?
<!-- gh-comment-id:601824749 -->
@ghostsquad commented on GitHub (Mar 20, 2020):
yes, this would be cool. Along those lines, what about authentication?
I have added support for custom headers as part of v2.0.0.
<!-- gh-comment-id:680392277 -->
@joelwmale commented on GitHub (Aug 26, 2020):
I have added support for custom headers 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 @prescottprue on GitHub (Dec 20, 2019).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/8
Thanks for the package! It would be awesome if passing headers was supported. Maybe something like so:
I have also seen
withcommonly used for actions sinceenv:@ghostsquad commented on GitHub (Mar 20, 2020):
yes, this would be cool. Along those lines, what about authentication?
@joelwmale commented on GitHub (Aug 26, 2020):
I have added support for custom headers as part of v2.0.0.