Skip to content

Commit 861fd9e

Browse files
committed
fix: logging
1 parent 3a94eab commit 861fd9e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/frontify.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { globSync } from 'glob';
22
import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
33
import { spawn } from 'node:child_process';
44
import { dirname, resolve } from 'node:path';
5+
import { info } from '@actions/core';
56

67
const 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

0 commit comments

Comments
 (0)