Skip to content

Commit

Permalink
fix: set failed status correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Heneise <patrick@zentered.co>
  • Loading branch information
PatrickHeneise committed Mar 15, 2021
1 parent 25d07cb commit 8627777
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/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function run() {
body: `SEO Check: \n\n${message}`
})

if (hasErrors) {
if (hasErrors && hasErrors.length > 0) {
core.warning(hasErrors)
core.setFailed('Check failed.')
}
Expand Down

0 comments on commit 8627777

Please sign in to comment.