last deploy
Showing
1 changed file
with
6 additions
and
8 deletions
| 1 | <?php | 1 | <?php |
| 2 | #webhook.php | ||
| 3 | echo "finally working<br/>"; | ||
| 2 | 4 | ||
| 3 | if ($_POST['payload'] ) { | 5 | $cmd = shell_exec("git pull 2>&1"); |
| 4 | // Only respond to POST requests from Github | ||
| 5 | 6 | ||
| 6 | // If there is already a repo, just run a git pull to grab the latest changes | 7 | #for debugging |
| 7 | shell_exec("git pull"); | 8 | echo $cmd; |
| 8 | |||
| 9 | die("done " . mktime()); | ||
| 10 | |||
| 11 | } | ||
| 12 | 9 | ||
| 10 | die("<br/>done " . mktime()); | ||
| 13 | ?> | 11 | ?> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment