add note about loading .env for local dev
This commit is contained in:
@@ -11,8 +11,10 @@ import { type Inputs, main } from "./main.ts";
|
|||||||
import { log } from "./utils/cli.ts";
|
import { log } from "./utils/cli.ts";
|
||||||
import { setupTestRepo } from "./utils/setup.ts";
|
import { setupTestRepo } from "./utils/setup.ts";
|
||||||
|
|
||||||
|
// load action's .env file in case it exists for local dev
|
||||||
config();
|
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> {
|
export async function run(prompt: string): Promise<AgentResult> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user