Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 29a37be

Browse filesBrowse files
initial commit (#938)
1 parent f677139 commit 29a37be
Copy full SHA for 29a37be

File tree

3 files changed

+11
-6
lines changed
Filter options

3 files changed

+11
-6
lines changed

‎dist/setup/index.js

Copy file name to clipboardExpand all lines: dist/setup/index.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92118,7 +92118,9 @@ function extractValue(obj, keys) {
9211892118
*/
9211992119
function getVersionInputFromTomlFile(versionFile) {
9212092120
core.debug(`Trying to resolve version form ${versionFile}`);
92121-
const pyprojectFile = fs_1.default.readFileSync(versionFile, 'utf8');
92121+
let pyprojectFile = fs_1.default.readFileSync(versionFile, 'utf8');
92122+
// Normalize the line endings in the pyprojectFile
92123+
pyprojectFile = pyprojectFile.replace(/\r\n/g, '\n');
9212292124
const pyprojectConfig = toml.parse(pyprojectFile);
9212392125
let keys = [];
9212492126
if ('project' in pyprojectConfig) {

‎package-lock.json

Copy file name to clipboardExpand all lines: package-lock.json
+4-4Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/utils.ts

Copy file name to clipboardExpand all lines: src/utils.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ function extractValue(obj: any, keys: string[]): string | undefined {
224224
export function getVersionInputFromTomlFile(versionFile: string): string[] {
225225
core.debug(`Trying to resolve version form ${versionFile}`);
226226

227-
const pyprojectFile = fs.readFileSync(versionFile, 'utf8');
227+
let pyprojectFile = fs.readFileSync(versionFile, 'utf8');
228+
// Normalize the line endings in the pyprojectFile
229+
pyprojectFile = pyprojectFile.replace(/\r\n/g, '\n');
230+
228231
const pyprojectConfig = toml.parse(pyprojectFile);
229232
let keys = [];
230233

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.