mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Remove .python-version warnings
This commit is contained in:
parent
181184007f
commit
5272dc6000
2 changed files with 0 additions and 7 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -66942,14 +66942,12 @@ function resolveVersionInput() {
|
|||
core.info(`Resolved ${versionFile} as ${version}`);
|
||||
return [version];
|
||||
}
|
||||
utils_1.logWarning("Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file.");
|
||||
versionFile = '.python-version';
|
||||
if (fs_1.default.existsSync(versionFile)) {
|
||||
const version = fs_1.default.readFileSync(versionFile, 'utf8');
|
||||
core.info(`Resolved ${versionFile} as ${version}`);
|
||||
return [version];
|
||||
}
|
||||
utils_1.logWarning(`${versionFile} doesn't exist.`);
|
||||
return versions;
|
||||
}
|
||||
function run() {
|
||||
|
|
|
@ -47,9 +47,6 @@ function resolveVersionInput() {
|
|||
return [version];
|
||||
}
|
||||
|
||||
logWarning(
|
||||
"Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file."
|
||||
);
|
||||
versionFile = '.python-version';
|
||||
if (fs.existsSync(versionFile)) {
|
||||
const version = fs.readFileSync(versionFile, 'utf8');
|
||||
|
@ -57,8 +54,6 @@ function resolveVersionInput() {
|
|||
return [version];
|
||||
}
|
||||
|
||||
logWarning(`${versionFile} doesn't exist.`);
|
||||
|
||||
return versions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue