Skip to content

Commit

Permalink
Merge pull request #91 from stuartleeks/sl/fix-push-filter-check
Browse files Browse the repository at this point in the history
Fix push filter check
  • Loading branch information
stuartleeks authored Jul 8, 2021
2 parents 3684470 + e5d1002 commit 23289aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion github-action/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 github-action/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion github-action/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function runPost() {
return;
}
}
if (pushOption !== 'always') {
else if (pushOption !== 'always') {
core.setFailed(`Unexpected push value ('${pushOption})'`);
return;
}
Expand Down
4 changes: 1 addition & 3 deletions github-action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ async function runPost(): Promise<void> {
)
return
}
}

if (pushOption !== 'always') {
} else if (pushOption !== 'always') {
core.setFailed(`Unexpected push value ('${pushOption})'`)
return
}
Expand Down

0 comments on commit 23289aa

Please sign in to comment.