Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a69c2b

Browse filesBrowse files
Improved logging during setup (actions#113)
* Improved error output during setup * Change from debug to info for normal output * Apply suggestions from code review Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com> Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
1 parent 654aa00 commit 7a69c2b
Copy full SHA for 7a69c2b

File tree

Expand file treeCollapse file tree

3 files changed

+12
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+12
-3
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ You should specify only a major and minor version if you are okay with the most
136136

137137
# Using `setup-python` with a self hosted runner
138138

139-
If you would like to use `setup-python` and a self-hosted runner, there are a few extra things you need to make sure are set up so that new versions of Python can be downloaded and configured on your runner.
139+
Python distributions are only available for the same [environments](https://github.com/actions/virtual-environments#available-environments) that GitHub Actions hosted environments are available for. If you are using an unsupported version of Ubuntu such as `19.04` or another Linux distribution such as Fedora, `setup-python` will not work. If you have a supported self-hosted runner and you would like to use `setup-python`, there are a few extra things you need to make sure are set up so that new versions of Python can be downloaded and configured on your runner.
140+
141+
If you are experiencing problems while configuring Python on your self-hosted runner, turn on [step debugging](https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs) to see addition logs.
140142

141143
### Windows
142144

‎dist/index.js

Copy file name to clipboardExpand all lines: dist/index.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6355,7 +6355,10 @@ function installPython(workingDirectory) {
63556355
silent: true,
63566356
listeners: {
63576357
stdout: (data) => {
6358-
core.debug(data.toString().trim());
6358+
core.info(data.toString().trim());
6359+
},
6360+
stderr: (data) => {
6361+
core.error(data.toString().trim());
63596362
}
63606363
}
63616364
};

‎src/install-python.ts

Copy file name to clipboardExpand all lines: src/install-python.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as core from '@actions/core';
33
import * as tc from '@actions/tool-cache';
44
import * as exec from '@actions/exec';
55
import {ExecOptions} from '@actions/exec/lib/interfaces';
6+
import {stderr} from 'process';
67

78
const TOKEN = core.getInput('token');
89
const AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;
@@ -37,7 +38,10 @@ async function installPython(workingDirectory: string) {
3738
silent: true,
3839
listeners: {
3940
stdout: (data: Buffer) => {
40-
core.debug(data.toString().trim());
41+
core.info(data.toString().trim());
42+
},
43+
stderr: (data: Buffer) => {
44+
core.error(data.toString().trim());
4145
}
4246
}
4347
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.