Some checks failed
Gitea Actions Demo Training / Explore-Gitea-Actions (push) Failing after 11s
15 lines
336 B
Python
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) |