site/webhook.php
2023-09-02 23:10:21 +02:00

13 lines
271 B
PHP

<?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");