Skip to content

Commit 68fafec

Browse files
authored
refactor: use core.info instead of console.log (actions#185)
1 parent c46424e commit 68fafec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4728,9 +4728,9 @@ function run() {
47284728
auth.configAuthentication(registryUrl, alwaysAuth);
47294729
}
47304730
const matchersPath = path.join(__dirname, '..', '.github');
4731-
console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
4732-
console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`);
4733-
console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`);
4731+
core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
4732+
core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`);
4733+
core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`);
47344734
}
47354735
catch (error) {
47364736
core.setFailed(error.message);

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ export async function run() {
4646
}
4747

4848
const matchersPath = path.join(__dirname, '..', '.github');
49-
console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
50-
console.log(
49+
core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`);
50+
core.info(
5151
`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`
5252
);
53-
console.log(
53+
core.info(
5454
`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
5555
);
5656
} catch (error) {

0 commit comments

Comments
 (0)