We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec2d0b8 commit 3e16018Copy full SHA for 3e16018
1 file changed
.github/workflows/publish-release.yml
@@ -149,9 +149,9 @@ jobs:
149
REPO: ${{ github.repository }}
150
run: |
151
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}')
+ NL=$'\n'
+ 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}"
+ PAYLOAD=$(jq -n --arg text "$TEXT" '{text: $text}')
155
curl -s -X POST "$SLACK_WEBHOOK" \
156
-H "Content-Type: application/json" \
157
-d "$PAYLOAD"
0 commit comments