A Github Action for sending data to an endpoint
Supports all workflow event types
Sending a string:
- name: Webhook
uses: joelwmale/webhook-action@master
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
with:
data: "Hello from github actions!"
Sending a body of data:
- name: Webhook
uses: joelwmale/webhook-action@master
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
with:
data: "{'deployment': 'finished', 'project': 'actions'}"
It is highly recommended to use the action is an explicit commit SHA-1:
uses = "joelwmale/webhook-action@master@{SHA-1}"
to find a commit click here: https://github.com/joelwmale/webhook-action/commits/master
-
data: "Hello from github actions!"
-
data: "{'deployment': 'finished', 'project': 'actions'}"
The action is expecting a single environment variable of your data. This can be pre-encoded json string, or just a message. Format it to how your API is expecting.
WEBHOOK_URL
(required): This is the webhook url to send the payload to.
If you find any issues or have an improvement feel free to submit an issue
The MIT License (MIT). Please see License File for more information.