test shell script
This commit is contained in:
parent
670046e3a3
commit
26fb0240ca
|
|
@ -189,13 +189,14 @@ Route.post("/api/gitea-webhook", ({ request, response }) => {
|
|||
|
||||
exec(
|
||||
Env.get("URL_FILE_SHELL"),
|
||||
(error, stdout, stderr) => {
|
||||
async(error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.error(`Error executing command: ${error}`);
|
||||
return;
|
||||
}
|
||||
|
||||
sendMessToZulip("direct", [45], "none", "** NEW EVENT -> "+request.header("x-gitea-event")+" **"+stdout )
|
||||
const res = await sendMessToZulip("direct", [45], "none", "** NEW EVENT -> "+request.header("x-gitea-event")+" **"+stdout )
|
||||
console.log(res)
|
||||
console.log(`Command output:\n${stdout}`);
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue