import { DEFAULT_ENV } from "./main.js"; for (const [key, value] of Object.entries({ ...DEFAULT_ENV, "INPUT_CLIENT-ID": "", "INPUT_APP-ID": "", })) { process.env[key] = value; } // Log only the error message, not the full stack trace, because the stack // trace contains environment-specific paths and ANSI codes that differ // between local and CI environments. const _error = console.error; console.error = (err) => _error(err?.message ?? err); // Verify `main` exits with an error when neither `client-id` nor `app-id` is set. const { default: promise } = await import("../main.js"); await promise; process.exitCode = 0;