mirror of
https://github.com/actions/setup-python.git
synced 2025-06-12 15:27:13 +02:00
initial commit (#938)
This commit is contained in:
@ -224,7 +224,10 @@ function extractValue(obj: any, keys: string[]): string | undefined {
|
||||
export function getVersionInputFromTomlFile(versionFile: string): string[] {
|
||||
core.debug(`Trying to resolve version form ${versionFile}`);
|
||||
|
||||
const pyprojectFile = fs.readFileSync(versionFile, 'utf8');
|
||||
let pyprojectFile = fs.readFileSync(versionFile, 'utf8');
|
||||
// Normalize the line endings in the pyprojectFile
|
||||
pyprojectFile = pyprojectFile.replace(/\r\n/g, '\n');
|
||||
|
||||
const pyprojectConfig = toml.parse(pyprojectFile);
|
||||
let keys = [];
|
||||
|
||||
|
Reference in New Issue
Block a user