mirror of
https://github.com/actions/setup-python.git
synced 2024-11-25 08:30:58 -05: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.
|
* If none is present, returns an empty list.
|
||||||
*/
|
*/
|
||||||
export function getVersionInputFromTomlFile(versionFile: string): string[] {
|
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 pyprojectFile = fs.readFileSync(versionFile, 'utf8');
|
||||||
const pyprojectConfig = toml.parse(pyprojectFile);
|
const pyprojectConfig = toml.parse(pyprojectFile);
|
||||||
|
@ -267,7 +267,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] {
|
||||||
* - Trims whitespace.
|
* - Trims whitespace.
|
||||||
*/
|
*/
|
||||||
export function getVersionsInputFromPlainFile(versionFile: string): string[] {
|
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 content = fs.readFileSync(versionFile, 'utf8').trim();
|
||||||
const lines = content.split(/\r\n|\r|\n/);
|
const lines = content.split(/\r\n|\r|\n/);
|
||||||
const versions = lines
|
const versions = lines
|
||||||
|
|
Loading…
Reference in a new issue