Improved error output during setup

This commit is contained in:
Konrad Pabjan 2020-07-15 14:27:38 +02:00
parent 654aa00a6e
commit 533746a645
3 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as exec from '@actions/exec';
import {ExecOptions} from '@actions/exec/lib/interfaces';
import {stderr} from 'process';
const TOKEN = core.getInput('token');
const AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;
@ -38,6 +39,9 @@ async function installPython(workingDirectory: string) {
listeners: {
stdout: (data: Buffer) => {
core.debug(data.toString().trim());
},
stderr: (data: Buffer) => {
core.error(data.toString().trim());
}
}
};