Skip to content

Commit 204daa6

Browse files
committed
debug
1 parent 8821617 commit 204daa6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/constants.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import path from "path";
2-
import * as github from "@actions/github";
2+
import { context } from "@actions/github";
33

44
const cwd = process.cwd();
55

6-
export const IS_GITHUB_ACTION = Boolean(github.context.runId);
6+
console.log(context);
7+
8+
export const IS_GITHUB_ACTION = Boolean(context.runId);
79
export const temporaryDirectory = path.join(cwd, "./running");
810
export const repositoriesDirectory = path.join(cwd, "./repositories");
911
export const reportsDirectory = path.join(cwd, "./reports");
1012
export const MAXIMUM_GITHUB_COMMENT_LENGTH = 65536;
1113
export const GITHUB_ACTION_RUN_URL = IS_GITHUB_ACTION
12-
? `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/actions/runs/${github.context.runId}`
14+
? `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
1315
: undefined;
1416
export const GITHUB_ACTION_JOB_URL = IS_GITHUB_ACTION
15-
? `${GITHUB_ACTION_RUN_URL}/job/${github.context.runNumber}`
17+
? `${GITHUB_ACTION_RUN_URL}/job/${context.runNumber}`
1618
: undefined;

0 commit comments

Comments
 (0)