fast-webhook

A simple, fast-compiling, JavaScript Github Action to send a POST request with a JSON body to a URL.

MIT License

Stars
13
Committers
4

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.

Inputs

url

Required

The url to send the request to.

json

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. '{}').

Outputs

None.

Example usage

uses: jasongitmail/fast-webhook@v1
with:
  url: ${{ secrets.WEBHOOK_URL }}
  json: '{"foo": "bar"}'
Package Rankings
Top 8.69% on Github actions