Skip to content

Commit

Permalink
Update push-trigger.yml
Browse files Browse the repository at this point in the history
Signed-off-by: bn46 <[email protected]>
  • Loading branch information
bn46 authored Oct 9, 2024
1 parent 6fc0d5f commit 49685a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
GITHUB_USER="${{ github.event.pull_request.user.login }}"
# Use jq to extract the Slack ID corresponding to the GitHub username
SLACK_USER_ID=$(echo "$SLACK_USERS_MAP" | jq -r --arg github_user "$GITHUB_USER" '.[$github_user]')
#SLACK_USER_ID=$(echo "$SLACK_USERS_MAP" | jq -r --arg github_user "$GITHUB_USER" '.[$github_user]')
SLACK_USER_ID=$(echo "$SLACK_USERS_MAP" | grep -oP "$GITHUB_USER:\K[^,]+")
echo $SLACK_USER_ID
# Check if the Slack user ID was found
if [ -z "$SLACK_USER_ID" ] || [ "$SLACK_USER_ID" == "null" ]; then
Expand Down

0 comments on commit 49685a8

Please sign in to comment.