site/webhook.php

14 lines
271 B
PHP
Raw Normal View History

2023-09-02 23:10:21 +02:00
<?php
if(false && $_SERVER["HTTP_X_FORGEJO_EVENT"] != "push")
exit;
header("Content-Type: text/plain");
function sh($command) {
exec($command.' 2>&1', $output, $return_var);
return join("\n", $output);
}
chdir("podmack");
sh("git pull");
echo sh("packwiz list");