Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Update release notifications (#27)

Musthaq Ahamadfccb8d0cfbc1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index aa4a1111e..5ef1c5fda 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -48,13 +48,18 @@ jobs:
commit: 'Release: update version'
title: 'Release: update version'
+ - name: Format published packages for Slack
+ id: format_packages
+ run: |
+ echo "SLACK_VERSIONS=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[] | \"⚡️ \\(.name) -> \\(.version)\"' | paste -sd '\\n' -)" >> $GITHUB_ENV
+
- name: Send Slack Notification
if: steps.changesets.outputs.published == 'true'
uses: slackapi/[email protected]
with:
payload: |
{
- "text": "🚀 New SDK version published!\n*Repository:* ${{ github.repository }}\n*Versions:* ${{ steps.changesets.outputs.publishedPackages }}\n*Commit:* ${{ github.sha }}"
+ "text": "🚀 New SDK version published!\n*Repository:* ${{ github.repository }}\n*Versions:*\n${{ env.SLACK_VERSIONS }}\n*Commit:* ${{ github.sha }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}