add note about loading .env for local dev

This commit is contained in:
David Blass
2025-12-09 16:18:36 -05:00
parent 77334b1732
commit 7ffd7297c3
+3 -1
View File
@@ -11,8 +11,10 @@ import { type Inputs, main } from "./main.ts";
import { log } from "./utils/cli.ts";
import { setupTestRepo } from "./utils/setup.ts";
// load action's .env file in case it exists for local dev
config();
config({ path: join(process.cwd(), "../.env") });
// .env file should always be at repo root for pullfrog/pullfrog repo with action submodule
config({ path: join(process.cwd(), "..", ".env") });
export async function run(prompt: string): Promise<AgentResult> {
try {