Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Jun 25, 2024
1 parent 7bb3cfd commit 29cd018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
id: read_user_mapping
run: |
echo "Reading user mapping"
mapping=$(cat .github/user-mapping.json | jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]')
echo "$mapping" >> $GITHUB_ENV
while IFS="=" read -r key value; do
echo "${key}=${value}" >> $GITHUB_ENV
done < <(jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' .github/user-mapping.json)
- name: Extract mentions from comment body
id: extract_mentions_comment
Expand Down Expand Up @@ -87,7 +88,6 @@ jobs:
echo "color=danger" >> $GITHUB_ENV
else
echo "color=warning" >> $GITHUB_ENV
fi
- name: Send Slack Notification for comment if team members mentioned
if: github.event_name == 'issue_comment' && env.slack_mentions != ''
Expand Down

0 comments on commit 29cd018

Please sign in to comment.