Skip to content

Commit

Permalink
fix: Template file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDucer committed Aug 6, 2024
1 parent fe44bd5 commit 76409bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function _generateSummary(
if (!template || template.trim() === '') {
// Template from file
const templateFile = core.getInput('template-file')
if (templateFile || !exists(templateFile)) {
if (templateFile && templateFile.trim() !== '' && !exists(templateFile)) {
core.setFailed(`Template file not found: ${templateFile}`)
return ''
}
Expand Down

0 comments on commit 76409bb

Please sign in to comment.