Skip to content

Commit 011c443

Browse files
author
Sergey Dolin
authored
prettier
1 parent 3250b53 commit 011c443

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

dist/setup/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6646,11 +6646,13 @@ function cacheDependencies(cache, pythonVersion) {
66466646
function run() {
66476647
return __awaiter(this, void 0, void 0, function* () {
66486648
if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) {
6649-
core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY']);
6649+
core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' +
6650+
process.env['AGENT_TOOLSDIRECTORY']);
66506651
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
66516652
}
66526653
else {
6653-
core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE']);
6654+
core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' +
6655+
process.env['RUNNER_TOOL_CACHE']);
66546656
}
66556657
try {
66566658
const version = core.getInput('python-version');

src/setup-python.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ async function cacheDependencies(cache: string, pythonVersion: string) {
2525
}
2626

2727
async function run() {
28-
2928
if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) {
30-
core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY'] )
31-
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']
29+
core.debug(
30+
'Python is expected to be installed into AGENT_TOOLSDIRECTORY=' +
31+
process.env['AGENT_TOOLSDIRECTORY']
32+
);
33+
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
3234
} else {
33-
core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE'] )
35+
core.debug(
36+
'Python is expected to be installed into RUNNER_TOOL_CACHE=' +
37+
process.env['RUNNER_TOOL_CACHE']
38+
);
3439
}
3540
try {
3641
const version = core.getInput('python-version');

0 commit comments

Comments
 (0)