Skip to content

Commit

Permalink
fix: Get commit message from event
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jan 11, 2022
1 parent 86fc0c7 commit e91be43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ runs:
INCLUDE_COMMIT_MESSAGE: ${{ inputs.includeCommitMessage }}
with:
script: |
if (context.eventName !== "pull_request" || process.env.INCLUDE_COMMIT_MESSAGE === 'false') {
if (process.env.INCLUDE_COMMIT_MESSAGE === 'false') {
return "";
}
if (context.eventName !== "pull_request") {
return context.payload.head_commit.message;
}
let commitMessage;
try {
Expand Down

0 comments on commit e91be43

Please sign in to comment.