Skip to content

Commit bc18830

Browse files
committed
fix: 슬랙 알림 JSON 형식 변경
1 parent 2c2f488 commit bc18830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pr-slack-notify.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: 8398a7/action-slack@v3
3131
with:
3232
status: custom
33-
custom_payload: |
33+
custom_payload: >
3434
{
3535
"blocks": [
3636
{
@@ -57,14 +57,14 @@ jobs:
5757
"type": "section",
5858
"text": {
5959
"type": "mrkdwn",
60-
"text": "*PR 제목:*\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>"
60+
"text": "*PR 제목:*\n<${{ github.event.pull_request.html_url }}|${{ toJSON(github.event.pull_request.title) }}>"
6161
}
6262
},
6363
{
6464
"type": "section",
6565
"text": {
6666
"type": "mrkdwn",
67-
"text": "*PR 설명:*\n${{ github.event.pull_request.body }}"
67+
"text": "*PR 설명:*\n${{ toJSON(github.event.pull_request.body) }}"
6868
}
6969
},
7070
{
@@ -86,4 +86,4 @@ jobs:
8686
]
8787
}
8888
env:
89-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
89+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)