Skip to content

Commit

Permalink
Trim file output
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael B. Gale committed Oct 5, 2023
1 parent 68d0b65 commit 7380306
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/actions-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
},
},
).exec();
return stdout;
return stdout.trim();
} catch (e) {
core.info(
`Could not determine type of ${filePath} from ${stdout}. ${stderr}`,
Expand Down

0 comments on commit 7380306

Please sign in to comment.