mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 08:56:57 +01:00
Posts data to an endpoint on any event
Dockerfile | ||
entrypoint.sh | ||
LICENSE | ||
README.md |
🚀 Webhook Action
A Github Action for sending data to an endpoint
Supports all workflow event types
Usage
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
Arguments
-
data: "Hello from github actions!"
-
data: "{'deployment': 'finished', 'project': 'actions'}"
Environment
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.
Issues
If you find any issues or have an improvement feel free to submit an issue
License
The MIT License (MIT). Please see License File for more information.