Skip to content

Commit 07d6e9d

Browse files
committed
User core.warning
1 parent b4da311 commit 07d6e9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

monitor/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function run() {
158158
const perm = p[kind];
159159

160160
if (kind === 'unknown') {
161-
console.log(`The github token was used to call ${result.method} ${result.host}${result.path} but the permission is unknown. Please report this to the action author.`);
161+
core.warning(`The github token was used to call ${result.method} ${result.host}${result.path} but the permission is unknown. Please report this to the action author.`);
162162
wasUnknown = true;
163163
continue;
164164
}
@@ -220,7 +220,7 @@ async function run() {
220220
}
221221
})
222222
command.stderr.on('data', output => {
223-
console.log(output.toString())
223+
core.warning(output.toString())
224224
})
225225
command.on('exit', code => {
226226
if (code !== 0) {

monitor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function run() {
7474
const perm = p[kind];
7575

7676
if (kind === 'unknown') {
77-
console.log(`The github token was used to call ${result.method} ${result.host}${result.path} but the permission is unknown. Please report this to the action author.`);
77+
core.warning(`The github token was used to call ${result.method} ${result.host}${result.path} but the permission is unknown. Please report this to the action author.`);
7878
wasUnknown = true;
7979
continue;
8080
}
@@ -136,7 +136,7 @@ async function run() {
136136
}
137137
})
138138
command.stderr.on('data', output => {
139-
console.log(output.toString())
139+
core.warning(output.toString())
140140
})
141141
command.on('exit', code => {
142142
if (code !== 0) {

0 commit comments

Comments
 (0)