Last active
August 29, 2015 14:04
-
-
Save benallfree/acd0f93faeea0af0b972 to your computer and use it in GitHub Desktop.
github PHP webhook responder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!$_GET['pw']=='hFGw6DSxIFo8n7c4mb0RRCAdxAsK1jTDyZPyb6xlxqXKq6tM2') die('ok'); | |
$data = json_decode($HTTP_RAW_POST_DATA,true); | |
chdir(dirname(__DIR__)); | |
exec('bash update.sh', $output, $return); | |
die(join("\n",$output)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment