From 68fafecfa471220042b49240ef2621c40c87577f Mon Sep 17 00:00:00 2001 From: Rohan Chougule Date: Wed, 20 Jan 2021 20:58:35 +0530 Subject: [PATCH] refactor: use core.info instead of console.log (#185) --- 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 0276299c..800d35a9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4728,9 +4728,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 34332765..193eaeee 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,11 +46,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) {