Skip to content

Commit

Permalink
Merge pull request #10 from tanguyantoine/patch-1
Browse files Browse the repository at this point in the history
fix: ensure customEvent is not empty
  • Loading branch information
adamvaughan authored Jun 7, 2022
2 parents 25417ab + 774e9ea commit 8f1a069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ try {
const customEvent = core.getInput('custom-event');
const data = github.context.payload;

if (typeof customEvent === 'string') {
if (typeof customEvent === 'string' && customEvent !== '') {
// if custom event is described, prefer emitting custom event
handleCustomEvent(customEvent, integrationKey);
} else if (github.context.eventName === 'push') {
Expand Down

0 comments on commit 8f1a069

Please sign in to comment.