mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-01-24 07:10:18 +00:00
Fixed the githook for www
This commit is contained in:
@@ -34,7 +34,7 @@ if ($remoteip !== $allowedip)
|
|||||||
//* if you need get full json input */
|
//* if you need get full json input */
|
||||||
//fwrite($fs, 'DATA: '.print_r($data, true).PHP_EOL);
|
//fwrite($fs, 'DATA: '.print_r($data, true).PHP_EOL);
|
||||||
|
|
||||||
if ($data["repository"]["full_name"] == 'thunix/ansible') {
|
if ($data["repository"]["full_name"] == 'thunix/www') {
|
||||||
syslog(LOG_INFO, 'Ansible Webhook recieved.');
|
syslog(LOG_INFO, 'Ansible Webhook recieved.');
|
||||||
if ( time () - filemtime ( $ansible_lastrun ) > $ratelimit ) {
|
if ( time () - filemtime ( $ansible_lastrun ) > $ratelimit ) {
|
||||||
touch ( $ansible_dropfile );
|
touch ( $ansible_dropfile );
|
||||||
|
|||||||
Reference in New Issue
Block a user