A simple, fast-compiling, JavaScript Github Action to send a POST request with a JSON body to a URL.
It builds very quickly (<1s) relative to Docker-based actions, which take ~30s, reducing build times.
Required
The url to send the request to.
Optional
A JSON string to be sent as the POST body (e.g. '{"foo":"bar"}'
).
If this is not provided, or if the value is an empty string, an empty JSON body
will be sent (i.e. '{}'
).
None.
uses: jasongitmail/fast-webhook@v1
with:
url: ${{ secrets.WEBHOOK_URL }}
json: '{"foo": "bar"}'