diff --git a/src/program.ts b/src/program.ts index 360336f..ddd9baa 100644 --- a/src/program.ts +++ b/src/program.ts @@ -37,8 +37,9 @@ export async function main(): Promise { const logger = getDefaultLogger(env); try { + const action = await initializeAction(new URL("../action.yml", import.meta.url), env); + const githubContext = new GitHubContext(env); - const action = await initializeAction(new URL("../action.yml"), env); await publish(action, githubContext, logger); } catch (e) { logger.fatal(e);