Skip to content

Commit

Permalink
Get correct ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
steviemul committed Sep 6, 2024
1 parent a53b542 commit d8846e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const getRef = () => {
}
default: {
core.warning(`Received unexpected github event ${github.context.eventName}`);
return github.context.payload?.ref;
return github.context.ref || github.context.payload?.ref;
}
}
};
Expand Down

0 comments on commit d8846e6

Please sign in to comment.