Skip to content

Commit 7380306

Browse files
committed
Trim file output
1 parent 68d0b65 commit 7380306

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/actions-util.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
452452
},
453453
},
454454
).exec();
455-
return stdout;
455+
return stdout.trim();
456456
} catch (e) {
457457
core.info(
458458
`Could not determine type of ${filePath} from ${stdout}. ${stderr}`,

0 commit comments

Comments
 (0)