Skip to content

Commit

Permalink
actions/main: lowercase actor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Jul 3, 2024
1 parent 625f3cd commit 5ef94d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actions/main/action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ module.exports = async ({ github, context, inputs, actionPath, core, debug = fal
debugLog('Slack assignees:', slackAssignees)

// actor-slack step
const actor = githubToSlack[context.actor] ? githubToSlack[context.actor] : `@${context.actor}`
const lowerActor = context.actor.toLowerCase()
const actor = githubToSlack[lowerActor] ? githubToSlack[lowerActor] : `@${context.actor}`
core.setSecret(actor)

if (fs.existsSync('reviewdog.fail.log')) {
Expand Down

0 comments on commit 5ef94d9

Please sign in to comment.