Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Minimal dependencies webhook step for Github Actions

License

Notifications You must be signed in to change notification settings

piranha/webhook-action

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

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send webhooks from Github Actions

This is a minimal depencies webhook action. The only dependency is Github's @actions library to support inputs/ouputs. It's done in JavaScript as Github documentation says this is faster than Docker.

Example

jobs:
  example:
  steps:
  - name: notify slack
    uses: piranha/[email protected]
    with:
      url: ${{secrets.SLACK_WEBHOOK}}
      body: '{"text": "hello everyone"}'

Parameters

  • url (required) - destination. Put it in your secrets, please
  • method - HTTP method to use, default: POST
  • body - HTTP body to send, empty by default
  • headers - HTTP headers, if Content-Type is not specified, application/json will be used

If you can't understand an error from the API, debug logging is supported.

About

Minimal dependencies webhook step for Github Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •