File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11const path = require ( "path" ) ;
22
3- const GITHUB_TOKEN = process . env [ "INPUT_GITHUBTOKEN" ] || process . env [ "GITHUB_TOKEN" ] ;
3+ const GITHUB_TOKEN =
4+ process . env [ "INPUT_GITHUBTOKEN" ] || process . env [ "GITHUB_TOKEN" ] ;
45const GITHUB_EVENT_NAME = process . env [ "GITHUB_EVENT_NAME" ] ;
56const GITHUB_EVENT_PATH = process . env [ "GITHUB_EVENT_PATH" ] ;
67const GITHUB_SHA = process . env [ "GITHUB_SHA" ] ;
@@ -12,7 +13,9 @@ const REPO_DIRECTORY = process.env["GITHUB_WORKSPACE"];
1213const JPEG_QUALITY = parseInt ( process . env [ "INPUT_JPEGQUALITY" ] ) || 80 ;
1314const PNG_QUALITY = parseInt ( process . env [ "INPUT_PNGQUALITY" ] ) || 80 ;
1415const WEBP_QUALITY = parseInt ( process . env [ "INPUT_WEBPQUALITY" ] ) || 80 ;
15- const IGNORE_PATHS = process . env [ "INPUT_IGNOREPATHS" ] . split ( "," ) || [ "node_modules/**" ] ;
16+ const IGNORE_PATHS = process . env [ "INPUT_IGNOREPATHS" ]
17+ ? process . env [ "INPUT_IGNOREPATHS" ] . split ( "," )
18+ : [ "node_modules/**" ] ;
1619
1720const COMMITTER = {
1821 name : "Calibre" ,
@@ -22,7 +25,7 @@ const COMMITTER = {
2225if ( ! REPO_DIRECTORY ) {
2326 console . log ( "::error:: There is no GITHUB_WORKSPACE environment variable" ) ;
2427 process . exit ( 1 ) ;
25- } ;
28+ }
2629
2730const CONFIG_PATH = path . join (
2831 REPO_DIRECTORY ,
You can’t perform that action at this time.
0 commit comments