From 011c443f81da0c48c2615561093cc440facf4311 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Thu, 17 Feb 2022 19:21:13 +0000 Subject: [PATCH] prettier --- dist/setup/index.js | 6 ++++-- src/setup-python.ts | 13 +++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 8c0f675..054cb72 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6646,11 +6646,13 @@ function cacheDependencies(cache, pythonVersion) { function run() { return __awaiter(this, void 0, void 0, function* () { if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { - core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY']); + core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + + process.env['AGENT_TOOLSDIRECTORY']); process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; } else { - core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE']); + core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + + process.env['RUNNER_TOOL_CACHE']); } try { const version = core.getInput('python-version'); diff --git a/src/setup-python.ts b/src/setup-python.ts index 9b1fd35..6022b2e 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -25,12 +25,17 @@ async function cacheDependencies(cache: string, pythonVersion: string) { } async function run() { - if (process.env['AGENT_TOOLSDIRECTORY'] !== undefined) { - core.debug('Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + process.env['AGENT_TOOLSDIRECTORY'] ) - process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'] + core.debug( + 'Python is expected to be installed into AGENT_TOOLSDIRECTORY=' + + process.env['AGENT_TOOLSDIRECTORY'] + ); + process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY']; } else { - core.debug('Python is expected to be installed into RUNNER_TOOL_CACHE=' + process.env['RUNNER_TOOL_CACHE'] ) + core.debug( + 'Python is expected to be installed into RUNNER_TOOL_CACHE=' + + process.env['RUNNER_TOOL_CACHE'] + ); } try { const version = core.getInput('python-version');