diff --git a/notify-slack/action.yml b/notify-slack/action.yml index e59bac9..54219c2 100644 --- a/notify-slack/action.yml +++ b/notify-slack/action.yml @@ -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 + "|μƒνƒœ 보기 β†’>")} ]} ] }')