Skip to content

Commit b68ad2b

Browse files
committed
fix: slack message parameter 수정(toJson 처리)
1 parent fc5cb0b commit b68ad2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cicd-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ jobs:
245245
},
246246
{
247247
"title": "커밋 메시지",
248-
"value": "${{ github.event.head_commit.message }}",
248+
"value": "${{ toJson(github.event.head_commit.message) }}",
249249
"short": false
250250
}
251251
]
@@ -266,7 +266,7 @@ jobs:
266266
"channel": "#server-deploy",
267267
"attachments": [
268268
{
269-
"color": "#ff0000", # 실패는 빨간색
269+
"color": "#ff0000",
270270
"title": "🚨 배포 실패: ${{ github.repository }}",
271271
"title_link": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
272272
"text": "${{ github.ref_name }} 브랜치에 배포 실패 ❌",
@@ -278,7 +278,7 @@ jobs:
278278
},
279279
{
280280
"title": "커밋 메시지",
281-
"value": "${{ github.event.head_commit.message }}",
281+
"value": "${{ toJson(github.event.head_commit.message) }}",
282282
"short": false
283283
}
284284
]

0 commit comments

Comments
 (0)