mirror of https://github.com/actions/setup-python
Fix typos
This commit is contained in:
parent
a6b01c4e40
commit
d97b6edda3
|
@ -65263,7 +65263,7 @@ function resolveVersionInput() {
|
||||||
let version = core.getInput('python-version');
|
let version = core.getInput('python-version');
|
||||||
let versionFile = core.getInput('python-version-file');
|
let versionFile = core.getInput('python-version-file');
|
||||||
if (version && versionFile) {
|
if (version && versionFile) {
|
||||||
core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used');
|
core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used.');
|
||||||
}
|
}
|
||||||
if (version) {
|
if (version) {
|
||||||
return version;
|
return version;
|
||||||
|
@ -65278,14 +65278,14 @@ function resolveVersionInput() {
|
||||||
versionFile = defaultVersionFile;
|
versionFile = defaultVersionFile;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found`);
|
throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
version = fs_1.default.readFileSync(versionFile, 'utf8');
|
version = fs_1.default.readFileSync(versionFile, 'utf8');
|
||||||
core.info(`Resolved ${versionFile} as ${version}`);
|
core.info(`Resolved ${versionFile} as ${version}`);
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
core.warning("Neither 'python-version' nor 'python-version-file' inputs were supplied. ");
|
core.warning("Neither 'python-version' nor 'python-version-file' inputs were supplied.");
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
function run() {
|
function run() {
|
||||||
|
|
|
@ -28,7 +28,7 @@ function resolveVersionInput(): string {
|
||||||
|
|
||||||
if (version && versionFile) {
|
if (version && versionFile) {
|
||||||
core.warning(
|
core.warning(
|
||||||
'Both python-version and python-version-file inputs are specified, only python-version will be used'
|
'Both python-version and python-version-file inputs are specified, only python-version will be used.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ function resolveVersionInput(): string {
|
||||||
versionFile = defaultVersionFile;
|
versionFile = defaultVersionFile;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found`
|
`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ function resolveVersionInput(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.warning(
|
core.warning(
|
||||||
"Neither 'python-version' nor 'python-version-file' inputs were supplied. "
|
"Neither 'python-version' nor 'python-version-file' inputs were supplied."
|
||||||
);
|
);
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
|
|
Loading…
Reference in New Issue