Webhook that runs scripts depending on the name
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webhook-actions-0.1.0.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file webhook-actions-0.1.0.tar.gz
.
File metadata
- Download URL: webhook-actions-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f31c05617b64fd9eb650415a218e67aeef02acb2aca534ecd4c999aa71484e |
|
MD5 | 80b607310162305dfd7de44f86abfbc9 |
|
BLAKE2b-256 | 30bc9a3e9dd0855c351c10cd27aa5ea1cea3533d706a97649140126332fdb5d9 |
File details
Details for the file webhook_actions-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: webhook_actions-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c973e7a664d6677d8e2fb4e364c77e74cc1458df94abccb6909d1ce2d1e4e1c |
|
MD5 | 72de9f802d0d9b5a86714dbeb16c588f |
|
BLAKE2b-256 | e8efcfebc88cf045d5f57906549ddb09476715787bc57ab1baca13db863428e7 |