Skip to content

Commit f62dde5

Browse files
committed
fix: Fix broken slack notification caused by un-escaped json string
1 parent 212b742 commit f62dde5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy-infra.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
phase: ${{ steps.set.outputs.phase }}
3030
matrix: ${{ steps.set.outputs.matrix }}
3131
keys: ${{ steps.set.outputs.keys }}
32+
keys_display: ${{ steps.set.outputs.keys_display }}
3233
env:
3334
PHASE: ${{ github.event_name == 'workflow_dispatch' && inputs.WORKFLOW_PHASE || 'dev' }}
3435
steps:
@@ -55,10 +56,12 @@ jobs:
5556
esac
5657
MATRIX=$(jq -nc --argjson inc "$INCLUDE" '{include: $inc}')
5758
KEYS=$(echo "$MATRIX" | jq -c '[.include[].key]')
59+
KEYS_DISPLAY=$(echo "$MATRIX" | jq -r '[.include[].key] | join(" & ")')
5860
{
5961
echo "phase=$PHASE"
6062
echo "matrix=$MATRIX"
6163
echo "keys=$KEYS"
64+
echo "keys_display=$KEYS_DISPLAY"
6265
} >> "$GITHUB_OUTPUT"
6366
6467
build:
@@ -143,4 +146,4 @@ jobs:
143146
slack-token: ${{ secrets.SLACK_BOT_TOKEN }}
144147
slack-channel: ${{ vars.SLACK_DEPLOYMENT_ALERT_CHANNEL }}
145148
header-prefix: "frontend → infrastructure (${{ needs.config.outputs.phase || '?' }})"
146-
section-text: "keys: `${{ needs.config.outputs.keys || '?' }}`\n실제 배포 결과는 infrastructure repo `Deploy frontend` 알림 확인"
149+
section-text: "${{ needs.config.outputs.keys_display || '?' }} 빌드"

0 commit comments

Comments
 (0)