Skip to content

Commit

Permalink
chore: better failure message when not run on pr (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygriffiths authored Dec 25, 2021
1 parent 467f00e commit 06ced9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ try {
if (github.context.payload && github.context.payload.pull_request) {
var title = github.context.payload.pull_request.title
title = title.toLowerCase()
} else {
core.setFailed('Could not get Pull Request Title (Action not run on a pull request?)')
}
core.info(title)
var passed = false
Expand Down

0 comments on commit 06ced9c

Please sign in to comment.