Webhook Actions
Webhook that runs scripts located in ~/webhook-actions/
directory.
How To Use
- Add scripts into webhook-actions. These can be in sub-directories
- Call the URL
http://localhost:5000/your-script-name
Simple example
-
URL:
http://localhost:5000/log-stat
- Body: something
-
Command:
~/webhook-actions/log-stat something
Example with subdirectories
-
URL:
https://YOUR_DOMAIM.com/git/your-project/deploy
- Body: {"tag": "1.0.1"}
-
Command:
~/webhook-actions/git/your-project/deploy "{\"tag\": \"1.0.1\"}"
Example config file
The config file is located at ~/.webhook-actions.cgf
.
When you run the script the first time it will create a default configuration.
[General]
# Port to listen to
Port = 5000
Authors
- Matteus Magnusson, senth.wallace@gmail.com