슬랙 스크립트 메세지 수정3

This commit is contained in:
2026-04-29 10:30:51 +09:00
parent 0615bf8cb4
commit b068a30835

View File

@@ -28,7 +28,7 @@ runs:
# 멀티라인 커밋 메시지면 첫 줄만 # 멀티라인 커밋 메시지면 첫 줄만
COMMIT_MSG="$(printf '%s' "$COMMIT_MSG" | head -n1)" COMMIT_MSG="$(printf '%s' "$COMMIT_MSG" | head -n1)"
HEADER_TEXT="🚀 배포 시작 — ${REPO}" HEADER_TEXT="배포 시작 — ${REPO}"
PAYLOAD=$(jq -n \ PAYLOAD=$(jq -n \
--arg repo "$REPO" \ --arg repo "$REPO" \
@@ -37,19 +37,13 @@ runs:
--arg actor "$ACTOR" \ --arg actor "$ACTOR" \
--arg sturl "$STATUS_URL" \ --arg sturl "$STATUS_URL" \
'{ '{
text: ("🚀 " + $repo + " 배포 시작"), text: ($repo + " 배포 시작"),
blocks: [ blocks: [
{type:"section", text:{type:"mrkdwn", {type:"section", text:{type:"mrkdwn",
text: ("🚀 *" + $repo + "* 배포 시작")}}, text: ("*" + $repo + "* 배포 시작")}},
{type:"context", elements:[ {type:"context", elements:[
{type:"mrkdwn", {type:"mrkdwn",
text: ($branch + " · " + $msg + " · " + $actor + " <" + $sturl)} text: ($branch + " · " + $msg + " · " + $actor + " <" + $sturl + "|상태 보기 →>")}
]},
{type:"actions", elements:[
{type:"button",
text:{type:"plain_text", text:"상태 보기 →>", emoji:true},
url:$sturl,
style:"primary"}
]} ]}
] ]
}') }')