Skip to content

Commit

Permalink
[.github/actions/slack-notify] - fix: correct variable for author ema…
Browse files Browse the repository at this point in the history
…il lookup in Slack notify action (#8976)

- Update the grep search pattern to use the correct environment variable holding the author's name
 - Ensure error messages correctly reference the author's GitHub handle if not found in the authors file
  • Loading branch information
JulesBelveze authored Nov 27, 2024
1 parent 89545d8 commit f99dce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/slack-notify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ runs:
run: |
AUTHOR_NAME="${{ github.actor }}"
if ! EMAIL=$(grep "^$RAW_AUTHOR: " .authors | cut -d' ' -f2); then
echo "GitHub handle $RAW_AUTHOR not found in authors file" >&2
if ! EMAIL=$(grep "^$AUTHOR_NAME: " .authors | cut -d' ' -f2); then
echo "GitHub handle $AUTHOR_NAME not found in authors file" >&2
exit 1
fi
echo "email=$EMAIL" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f99dce2

Please sign in to comment.