File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { globSync } from 'glob';
22import { existsSync , mkdirSync , writeFileSync } from 'node:fs' ;
33import { spawn } from 'node:child_process' ;
44import { dirname , resolve } from 'node:path' ;
5+ import { info } from '@actions/core' ;
56
67const CONFIG_PATH = `${ process . env . XDG_CONFIG_HOME } /frontify-cli-nodejs/config.json` ;
78
@@ -14,17 +15,17 @@ export const deploy = async (
1415 writeConfigFile ( token , instanceDomain ) ;
1516
1617 const appPaths = globSync ( pathGlob ) ;
17- console . log ( `Found ${ appPaths . length } apps for path "${ pathGlob } ":` ) ;
18- console . log ( `- ${ appPaths . join ( '\n- ' ) } ` ) ;
18+ info ( `Found ${ appPaths . length } apps for path "${ pathGlob } ":` ) ;
19+ info ( `- ${ appPaths . join ( '\n- ' ) } ` ) ;
1920
2021 if ( appPaths . length === 0 ) {
2122 throw new Error ( `No apps found for path "${ pathGlob } "!` ) ;
2223 }
2324
2425 for ( const appPath of appPaths ) {
25- console . log ( `Start deploying "${ appPath } " to ${ instanceDomain } ...` ) ;
26+ info ( `Start deploying "${ appPath } " to ${ instanceDomain } ...` ) ;
2627 await deployApp ( appPath , extraArgs ) ;
27- console . log ( `Deployed "${ appPath } "!` ) ;
28+ info ( `Deployed "${ appPath } "!` ) ;
2829 }
2930} ;
3031
You can’t perform that action at this time.
0 commit comments