File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import path from "path" ;
2- import * as github from "@actions/github" ;
2+ import { context } from "@actions/github" ;
33
44const 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 ) ;
79export const temporaryDirectory = path . join ( cwd , "./running" ) ;
810export const repositoriesDirectory = path . join ( cwd , "./repositories" ) ;
911export const reportsDirectory = path . join ( cwd , "./reports" ) ;
1012export const MAXIMUM_GITHUB_COMMENT_LENGTH = 65536 ;
1113export 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 ;
1416export 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 ;
You can’t perform that action at this time.
0 commit comments