Skip to content

bukforks/webhook-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Webhook Action

GitHub Release License

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 }}
    data: "Hello from github actions!"

Sending a body of data:

- name: Webhook
  uses: joelwmale/webhook-action@master
  env:
    WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
    data: "{'deployment': 'finished', 'project': 'actions'}"

It is highly recommended to use the action is an explicit commit SHA-1:

uses = "joelwmale/webhook-action@{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.

About

Posts data to an endpoint on any event

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 85.1%
  • Shell 14.9%