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:
parent
bd1ce022fe
commit
04e00cd600
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue