Automagically trigger a Netlify build webhook by posting a message on Slack.
- Fork this repository
- Add required environment variables and run the Node.js script
- Create a Slack outgoing webhook with the URL (see Outgoing webhooks)
- Send the "trigger" message to your Slack channel
Add the following environment variables:
NETLIFY_WEBHOOKis the Netlify webhook endpointSLACK_TOKENis the webhook token provided by SlackGH_PATis the GitHub Personal Access Token to trigger events
The / endpoint is used to trigger the Netlify webhook, and the /:repo/:event endpoint creates a repository dispatch event.
Build TypeScript:
npm run build # tscRun the service on http://localhost:3000:
npm run launch # node dist/index.js
- Code: MIT Β© Koj
- "Slack" is a trademark of Slack Technologies, Inc.
- "Netlify" is a trademark of Netlify, Inc.
An open source project by Koj.
Furnish your home in style, for as low as CHF175/month β
