3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-21 17:49:35 +01:00

Fix typos

This commit is contained in:
Kryštof Korb 2024-01-04 00:45:19 +01:00
parent bd1ce022fe
commit 04e00cd600

View file

@ -222,7 +222,7 @@ function extractValue(obj: any, keys: string[]): string | undefined {
* If none is present, returns an empty list.
*/
export function getVersionInputFromTomlFile(versionFile: string): string[] {
core.debug(`Trying to resolve version form ${versionFile}`);
core.debug(`Trying to resolve version from ${versionFile}`);
const pyprojectFile = fs.readFileSync(versionFile, 'utf8');
const pyprojectConfig = toml.parse(pyprojectFile);
@ -267,7 +267,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] {
* - Trims whitespace.
*/
export function getVersionsInputFromPlainFile(versionFile: string): string[] {
core.debug(`Trying to resolve versions form ${versionFile}`);
core.debug(`Trying to resolve versions from ${versionFile}`);
const content = fs.readFileSync(versionFile, 'utf8').trim();
const lines = content.split(/\r\n|\r|\n/);
const versions = lines