Set a GitHub auto-updater
Closed this issue · 0 comments
albertoleoncio commented
Should be as simple as:
@app.route("/update-server", methods=["POST"])
def webhook():
if request.method == "POST":
subprocess.check_output(["git", "pull", "origin", "main"])
return "Updated Toolforge project successfully", 200
else:
return "Wrong event type", 400