deploy
Showing
1 changed file
with
3 additions
and
4 deletions
| ... | @@ -7,9 +7,8 @@ $LOCAL_REPO = "{$LOCAL_ROOT}/{$LOCAL_REPO_NAME}"; | ... | @@ -7,9 +7,8 @@ $LOCAL_REPO = "{$LOCAL_ROOT}/{$LOCAL_REPO_NAME}"; |
| 7 | $REMOTE_REPO = "git@git.gotenzing.com:jeffmbalicki/banners-with-skip.git"; | 7 | $REMOTE_REPO = "git@git.gotenzing.com:jeffmbalicki/banners-with-skip.git"; |
| 8 | $BRANCH = "deploy"; | 8 | $BRANCH = "deploy"; |
| 9 | 9 | ||
| 10 | if ( $_POST['payload'] ) { | 10 | |
| 11 | // Only respond to POST requests from Github | 11 | |
| 12 | echo 'payload'; | ||
| 13 | if( file_exists($LOCAL_REPO) ) { | 12 | if( file_exists($LOCAL_REPO) ) { |
| 14 | 13 | ||
| 15 | // If there is already a repo, just run a git pull to grab the latest changes | 14 | // If there is already a repo, just run a git pull to grab the latest changes |
| ... | @@ -23,6 +22,6 @@ echo 'done'; | ... | @@ -23,6 +22,6 @@ echo 'done'; |
| 23 | 22 | ||
| 24 | die("done " . mktime()); | 23 | die("done " . mktime()); |
| 25 | } | 24 | } |
| 26 | } | 25 | |
| 27 | 26 | ||
| 28 | ?> | 27 | ?> | ... | ... |
-
Please register or sign in to post a comment