From f99dce2fb053d3d7680296ce2c81d503e48329e4 Mon Sep 17 00:00:00 2001 From: Jules Belveze <32683010+JulesBelveze@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:18:39 +0100 Subject: [PATCH] [.github/actions/slack-notify] - fix: correct variable for author email 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 --- .github/actions/slack-notify/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/slack-notify/action.yml b/.github/actions/slack-notify/action.yml index b9a522ecf0e6..8a1e837e2134 100644 --- a/.github/actions/slack-notify/action.yml +++ b/.github/actions/slack-notify/action.yml @@ -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