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