Skip to content

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

License

Notifications You must be signed in to change notification settings

jasongitmail/fast-webhook

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Fast Webhook

Github Action MIT license

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"}'

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •