mirror of
https://github.com/actions/setup-python.git
synced 2025-07-02 23:53:47 +00:00
Improved error output during setup
This commit is contained in:
parent
654aa00a6e
commit
533746a645
3 changed files with 10 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue