Skip to content

Commit 3e16018

Browse files
committed
fix(ci): use real newlines in Slack release notification
1 parent ec2d0b8 commit 3e16018

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ jobs:
149149
REPO: ${{ github.repository }}
150150
run: |
151151
if [ -z "$SLACK_WEBHOOK" ]; then echo "SLACK_WEBHOOK not set, skipping"; exit 0; fi
152-
PAYLOAD=$(jq -n \
153-
--arg text "📦 *@copilotkit/aimock v${VERSION} published*\nnpm: https://www.npmjs.com/package/@copilotkit/aimock/v/${VERSION}\nRelease: https://github.com/${REPO}/releases/tag/v${VERSION}" \
154-
'{text: $text}')
152+
NL=$'\n'
153+
TEXT="📦 *@copilotkit/aimock v${VERSION} published*${NL}npm: https://www.npmjs.com/package/@copilotkit/aimock/v/${VERSION}${NL}Release: https://github.com/${REPO}/releases/tag/v${VERSION}"
154+
PAYLOAD=$(jq -n --arg text "$TEXT" '{text: $text}')
155155
curl -s -X POST "$SLACK_WEBHOOK" \
156156
-H "Content-Type: application/json" \
157157
-d "$PAYLOAD"

0 commit comments

Comments
 (0)