From 85f2c6074d381f633cee69d28deb6e254682791a Mon Sep 17 00:00:00 2001 From: Rohan Chougule Date: Sun, 16 Aug 2020 00:32:55 +0530 Subject: [PATCH] refactor: use core.info instead of console.log --- dist/index.js | 6 +++--- src/main.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 481183ea6..d92b07226 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4656,9 +4656,9 @@ function run() { auth.configAuthentication(registryUrl, alwaysAuth); } const matchersPath = path.join(__dirname, '..', '.github'); - console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); - console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`); - console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`); + core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); + core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`); + core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`); } catch (error) { core.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index 328db0d26..b8f3b2929 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,11 +31,11 @@ export async function run() { } const matchersPath = path.join(__dirname, '..', '.github'); - console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); - console.log( + core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); + core.info( `##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}` ); - console.log( + core.info( `##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}` ); } catch (error) {