mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
watch in real time as jeremy spams git commits to get postcommit working properly
This commit is contained in:
parent
0d0754c993
commit
de08981fe2
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ class Actions
|
||||||
public function executePostCommit()
|
public function executePostCommit()
|
||||||
{
|
{
|
||||||
$payload = json_decode($_REQUEST['payload']);
|
$payload = json_decode($_REQUEST['payload']);
|
||||||
$secret = file_get_contents('data/secret/github-secret');
|
$secret = file_get_contents($_SERVER['ROOT_DIR'] . '/data/secret/github-secret');
|
||||||
$isToMaster = $payload->ref === 'refs/heads/master';
|
$isToMaster = $payload->ref === 'refs/heads/master';
|
||||||
|
|
||||||
file_put_contents('github.txt', ($isToMaster ? 'master' : 'apprentince') . "\n$secret\n" . print_r($payload, TRUE), FILE_APPEND);
|
file_put_contents($_SERVER['ROOT_DIR'] . '/log/github.txt', ($isToMaster ? 'master' : 'apprentince') . "\n$secret\n" . print_r($payload, TRUE), FILE_APPEND);
|
||||||
|
|
||||||
return [null, []];
|
return [null, []];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue