Skip to content

Commit

Permalink
fix: Warning μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJeongHooo committed Jun 24, 2024
1 parent fd49009 commit 85e7ce5
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Actor:* '${{ github.actor }}'
*PR:* '${{ github.event.pull_request.html_url }}'"
"text": "*μž‘μ„±μž:* '${{ github.actor }}'
*PR 링크:* '${{ github.event.pull_request.html_url }}'"
}
}
]
}' https://slack.com/api/chat.postMessage)
ts=$(echo $response | jq -r '.ts')
echo "::set-output name=ts::$ts"
echo "$response" > output.json
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

Expand All @@ -58,17 +57,17 @@ jobs:
echo "::set-output name=slack_mentions::$slack_mentions"
- name: Send Slack Notification for comment if team members mentioned
if: ${{ github.event_name == 'issue_comment' && steps.map_to_slack_ids.outputs.slack_mentions != '' }}
if: github.event_name == 'issue_comment' && steps.map_to_slack_ids.outputs.slack_mentions != ''
run: |
ts="${{ steps.send_pr_notification.outputs.ts }}"
ts=$(jq -r '.ts' output.json)
curl -X POST -H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}" -H "Content-type: application/json" \
--data '{
"channel": "C079A5A8BL0",
"thread_ts": "'$ts'",
"text": "'${{ steps.map_to_slack_ids.outputs.slack_mentions }}' λ‹˜μ„ μ–ΈκΈ‰ν–ˆμŠ΅λ‹ˆλ‹€.
κΌ­ λ‚˜μ€‘μ— λ“€μ–΄κ°€μ„œ ν™•μΈν•˜κΈ°!
λ©”μ‹œμ§€: '${{ github.event.comment.body }}'"
}' https://slack.com/api/chat.postMessage
--data '{
"channel": "C079A5A8BL0",
"thread_ts": "'"$ts"'",
"text": "'${{ steps.map_to_slack_ids.outputs.slack_mentions }}' λ‹˜μ„ μ–ΈκΈ‰ν–ˆμŠ΅λ‹ˆλ‹€.
κΌ­ λ‚˜μ€‘μ— ν™•μΈν•΄μ£Όμ„Έμš”!
λ©”μ‹œμ§€: '${{ github.event.comment.body }}'"
}' https://slack.com/api/chat.postMessage
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

Expand Down

0 comments on commit 85e7ce5

Please sign in to comment.