Skip to content

Commit a2374c3

Browse files
committed
Replace __dirname in sync-back.ts
1 parent 4c932d9 commit a2374c3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎pr-checks/sync-back.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ import * as fs from "fs";
2121
import { parseArgs } from "node:util";
2222
import * as path from "path";
2323

24-
const THIS_DIR = __dirname;
25-
const CHECKS_DIR = path.join(THIS_DIR, "checks");
26-
const WORKFLOW_DIR = path.join(THIS_DIR, "..", ".github", "workflows");
27-
const SYNC_TS_PATH = path.join(THIS_DIR, "sync.ts");
24+
import { PR_CHECKS_DIR, REPO_ROOT } from "./config";
25+
26+
const CHECKS_DIR = path.join(PR_CHECKS_DIR, "checks");
27+
const WORKFLOW_DIR = path.join(REPO_ROOT, ".github", "workflows");
28+
const SYNC_TS_PATH = path.join(PR_CHECKS_DIR, "sync.ts");
2829

2930
/**
3031
* Scan generated workflow files to extract the latest action versions.

0 commit comments

Comments
 (0)