Skip to content

dereknguyen269/webhook-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Webhook Action

[![GitHub Release][ico-release]][link-github-release] ![License][ico-license]

A Github Action for sending data to an endpoint

Supports all workflow event types


Usage

Sending a body of data:

- name: Webhook
  uses: dereknguyen269/webhook-action@master
  env:
    WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
    WEBHOOK_DATA: '{"app": "HelloWorld", "version": "1.1.1"}'

Arguments

  • WEBHOOK_DATA: '{"app": "HelloWorld", "version": "1.1.1"}'

You can use like ENV:

  • WEBHOOK_DATA: ${{ secrets.WEBHOOK_DATA }}

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.
  • WEBHOOK_DATA (required)

Issues

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 86.2%
  • Shell 13.8%