summaryrefslogtreecommitdiff
path: root/hook.php
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2017-07-08 15:04:25 -0700
committerCarson Fleming <cflems@cflems.net>2017-07-08 15:04:25 -0700
commit8dad3086daed6f9ea2e15eaa596c045dbc2bee88 (patch)
treeacd98ee2e89af6fd42d974fbfae1f0bb9e09b805 /hook.php
parent18c3fb434f39da2b3e2597f473e3138770fd7d84 (diff)
downloadbulletin-8dad3086daed6f9ea2e15eaa596c045dbc2bee88.tar.gz
Added github logo
Diffstat (limited to 'hook.php')
-rw-r--r--hook.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/hook.php b/hook.php
new file mode 100644
index 0000000..3f3a55a
--- /dev/null
+++ b/hook.php
@@ -0,0 +1,6 @@
+<?php
+## GitHub WebHook ##
+if ($_SERVER['HTTP_X_GITHUB_EVENT'] == 'push' && !empty($_POST['payload'])) {
+ shell_exec('cd /home/bulletin/web && git pull -q');
+}
+?>