Skip to content

Commit

Permalink
fix: Indicate early exit when not @dependabot. (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
rduplain authored Oct 22, 2021
1 parent 7507ef7 commit 8c8e815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { payload: { sender } } = github.context // eslint-disable-line camelcase

// exit early if PR is not by dependabot
if (!sender || !['dependabot[bot]', 'dependabot-preview[bot]'].includes(sender.login)) {
core.warning(`expected PR by "dependabot[bot]", found "${sender ? sender.login : 'no-sender'}" instead`)
core.warning(`exiting early - expected PR by "dependabot[bot]", found "${sender ? sender.login : 'no-sender'}" instead`)
process.exit(0)
}

Expand Down

0 comments on commit 8c8e815

Please sign in to comment.