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.2.1.tar.gz
(9.2 kB
view details)
Built Distribution
File details
Details for the file webhook-actions-0.2.1.tar.gz
.
File metadata
- Download URL: webhook-actions-0.2.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f88668723b234e8b337abeef8bccfe585e7e23e18ef94553b5290f3f87ff5c60 |
|
MD5 | 036a0d35e56f6ce947855c6a96e6044f |
|
BLAKE2b-256 | b493cdef2aa9ec7ed411f55c5dae088beb804182a973af57666c191a7da1b721 |
File details
Details for the file webhook_actions-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: webhook_actions-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b5fb688e926ea2063c7a26a5f366ea0de18a281ba6bbd9aae465fc31eaff06 |
|
MD5 | b528b0a1df27f49690a28c83ba578ec3 |
|
BLAKE2b-256 | b9229fe8803d1ebce9684d726718633beb1a0cda11a74f4613527306aec0cfa7 |