mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
Filter non github requests
This commit is contained in:
parent
8620d322e2
commit
0999d6351c
|
|
@ -1,3 +1,8 @@
|
|||
<?php
|
||||
|
||||
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
|
||||
$postBody = $_POST['payload'];
|
||||
$payload = json_decode($postBody, true);
|
||||
|
||||
if ($payload['repository']['name'] === 'Orange-Management') {
|
||||
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user