Files
containers/webhook/webhook.py
Marco Verleun 7c2b271de7
Some checks failed
Gitea Actions Demo Training / Explore-Gitea-Actions (push) Failing after 11s
Disable debugging
2023-06-07 07:52:50 +02:00

15 lines
336 B
Python

import time
import os
import webhook_listener
def process_post_request(request, *args, **kwargs):
# Process request here
os.system('git pull')
return
webhooks = webhook_listener.Listener(handlers={"POST": process_post_request},logScreen=False)
webhooks.start()
while True:
print("Still alive....")
time.sleep(300)