mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-10 21:32:19 +02:00
prettier
This commit is contained in:
parent
3250b5373c
commit
011c443f81
2 changed files with 13 additions and 6 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue