diff --git a/src/index.ts b/src/index.ts index eca22c1..5f182e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,7 +60,9 @@ async function run({ payload }: EmitterWebhookEvent<"pull_request">) { let output: Buffer; try { - output = execSync("multi-gitter run /tmp/script.sh --config /tmp/config.yaml"); + output = execSync( + "multi-gitter run /multi-gitter-runner/script.sh --config /multi-gitter-runner/config.yaml" + ); } catch (error) { const output = (error as SpawnSyncReturns).stdout.toString(); @@ -132,14 +134,16 @@ async function verify({ payload }: EmitterWebhookEvent<"pull_request">) { ref: payload.pull_request.head.sha, })) as components["schemas"]["content-file"]; - writeFileSync(`/tmp/${name}`, content, { + writeFileSync(`/multi-gitter-runner/${name}`, content, { mode: name === "script.sh" ? 0o755 : 0o644, }); }); let output: Buffer; try { - output = execSync("multi-gitter run /tmp/script.sh --config /tmp/config.yaml"); + output = execSync( + "multi-gitter run /multi-gitter-runner/script.sh --config /multi-gitter-runner/config.yaml" + ); } catch (error) { const output = (error as SpawnSyncReturns).stdout.toString();