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.
jobs:
example:
steps:
- name: notify slack
uses: piranha/[email protected]
with:
url: ${{secrets.SLACK_WEBHOOK}}
body: '{"text": "hello everyone"}'- 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-Typeis not specified,application/jsonwill be used
If you can't understand an error from the API, debug logging is supported.