Move the phase entry points into aliased module folders
Check / check (pull_request) Successful in 46s

This commit is contained in:
Danny Kim
2026-10-18 23:58:13 +09:00
parent 0a9f86a102
commit 6c4e4bf67d
18 changed files with 53 additions and 42 deletions
+22
View File
@@ -0,0 +1,22 @@
import { appendFile, rm } from "node:fs/promises";
import process from "node:process";
import { prepareRuntime } from "#runtime";
const env = (name: string): string => {
const value = process.env[name];
if (value === undefined || value === "") throw new Error(`${name} is not set`);
return value;
};
const manifest = await prepareRuntime(
env("ACTION_PATH"),
env("RUNNER_TEMP"),
env("BOT_AGENTS_MASTER_KEY"),
);
try {
await appendFile(env("GITHUB_OUTPUT"), `manifest=${manifest.manifestPath}\n`);
} catch (error) {
await rm(manifest.runtimeDir, { recursive: true }).catch(() => {});
throw error;
}