슬랙 스크립트 메세지 수정
This commit is contained in:
@@ -31,26 +31,20 @@ runs:
|
||||
HEADER_TEXT="🚀 배포 시작 — ${REPO}"
|
||||
|
||||
PAYLOAD=$(jq -n \
|
||||
--arg header "$HEADER_TEXT" \
|
||||
--arg repo "$REPO" \
|
||||
--arg branch "$BRANCH" \
|
||||
--arg sha "$SHORT_SHA" \
|
||||
--arg actor "$ACTOR" \
|
||||
--arg msg "$COMMIT_MSG" \
|
||||
--arg actor "$ACTOR" \
|
||||
--arg sturl "$STATUS_URL" \
|
||||
'{
|
||||
text: $header,
|
||||
text: ("🚀 " + $repo + " 배포 시작"),
|
||||
blocks: [
|
||||
{type:"header", text:{type:"plain_text", text:$header, emoji:true}},
|
||||
{type:"section", fields:[
|
||||
{type:"mrkdwn", text:("*브랜치*\n`" + $branch + "`")},
|
||||
{type:"mrkdwn", text:("*커밋*\n`" + $sha + "` " + $msg)},
|
||||
{type:"mrkdwn", text:("*실행자*\n" + $actor)}
|
||||
]},
|
||||
{type:"actions", elements:[
|
||||
{type:"button",
|
||||
text:{type:"plain_text", text:"📊 배포 상태 보기", emoji:true},
|
||||
url:$sturl,
|
||||
style:"primary"}
|
||||
{type:"section", text:{type:"mrkdwn",
|
||||
text: ("🚀 *" + $repo + "* 배포 시작")}},
|
||||
{type:"divider"},
|
||||
{type:"context", elements:[
|
||||
{type:"mrkdwn",
|
||||
text: ($branch + " · " + $msg + " · " + $actor + " <" + $sturl + "|상태 보기 →>")}
|
||||
]}
|
||||
]
|
||||
}')
|
||||
|
||||
Reference in New Issue
Block a user