File tree Expand file tree Collapse file tree 3 files changed +5
-52
lines changed Expand file tree Collapse file tree 3 files changed +5
-52
lines changed Original file line number Diff line number Diff line change 1
- import core from '@actions/core' ;
2
1
import { Action } from '../action' ;
3
2
import { Output } from '../config/output' ;
4
3
import { Logger } from '../logging' ;
5
4
5
+ /* eslint-disable-next-line import/no-commonjs, @typescript-eslint/no-var-requires */
6
+ const core = require ( '@actions/core' ) ;
7
+
6
8
export class Github implements Action {
7
9
publish ( variable : string , output : Output ) : void {
8
10
core . setOutput ( variable , JSON . stringify ( output ) ) ;
@@ -16,11 +18,7 @@ export class Github implements Action {
16
18
getLogger ( ) : Logger {
17
19
return {
18
20
debug ( message : string ) : void {
19
- if ( ! core . isDebug ( ) ) {
20
- return ;
21
- }
22
-
23
- core . info ( message ) ;
21
+ core . debug ( message ) ;
24
22
} ,
25
23
26
24
info ( message : string ) : void {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { App } from './app' ;
2
2
import { Action } from './action' ;
3
- import { Local } from './action/local' ;
4
3
import { Github } from './action/github' ;
5
4
import { SPACES_TO_INDENT_JSON } from './json' ;
6
5
import { Logger } from './logging' ;
7
6
8
- let action : Action = new Github ( ) ;
9
-
10
- /**
11
- * Default environment variable provided by GHA to each run
12
- * https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
13
- */
14
- if ( process . env . GITHUB_ACTIONS !== 'true' ) {
15
- action = new Local ( ) ;
16
- }
7
+ const action : Action = new Github ( ) ;
17
8
18
9
const logger : Logger = action . getLogger ( ) ;
19
10
const app = new App ( action , logger ) ;
You can’t perform that action at this time.
0 commit comments