1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-14 23:14:09 +02:00

initial commit

This commit is contained in:
priya-kinthali 2024-09-04 10:52:31 +05:30
parent f677139bbe
commit ece97f614b
3 changed files with 11 additions and 6 deletions

4
dist/setup/index.js vendored
View file

@ -92118,7 +92118,9 @@ function extractValue(obj, keys) {
*/
function getVersionInputFromTomlFile(versionFile) {
core.debug(`Trying to resolve version form ${versionFile}`);
const pyprojectFile = fs_1.default.readFileSync(versionFile, 'utf8');
let pyprojectFile = fs_1.default.readFileSync(versionFile, 'utf8');
// Normalize the line endings in the pyprojectFile
pyprojectFile = pyprojectFile.replace(/\r\n/g, '\n');
const pyprojectConfig = toml.parse(pyprojectFile);
let keys = [];
if ('project' in pyprojectConfig) {