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 7e39d25

Browse filesBrowse files
committed
refactor: Debug message for Python installation path
1 parent d5d6770 commit 7e39d25
Copy full SHA for 7e39d25

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+3
-9
lines changed

‎dist/setup/index.js

Copy file name to clipboardExpand all lines: dist/setup/index.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65338,17 +65338,15 @@ function resolveVersionInput() {
6533865338
return version;
6533965339
}
6534065340
function run() {
65341-
var _a, _b;
65341+
var _a;
6534265342
return __awaiter(this, void 0, void 0, function* () {
6534365343
if (utils_1.IS_MAC) {
6534465344
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
6534565345
}
6534665346
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
6534765347
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
6534865348
}
65349-
core.debug(`Python is expected to be installed into ${((_b = process.env.AGENT_TOOLSDIRECTORY) === null || _b === void 0 ? void 0 : _b.trim())
65350-
? process.env['AGENT_TOOLSDIRECTORY']
65351-
: process.env['RUNNER_TOOL_CACHE']}`);
65349+
core.debug(`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`);
6535265350
try {
6535365351
const version = resolveVersionInput();
6535465352
const checkLatest = core.getBooleanInput('check-latest');

‎src/setup-python.ts

Copy file name to clipboardExpand all lines: src/setup-python.ts
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ async function run() {
7272
}
7373

7474
core.debug(
75-
`Python is expected to be installed into ${
76-
process.env.AGENT_TOOLSDIRECTORY?.trim()
77-
? process.env['AGENT_TOOLSDIRECTORY']
78-
: process.env['RUNNER_TOOL_CACHE']
79-
}`
75+
`Python is expected to be installed into ${process.env['RUNNER_TOOL_CACHE']}`
8076
);
8177
try {
8278
const version = resolveVersionInput();

0 commit comments

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