CLI Install Health Check #606
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CLI Install Health Check | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' | |
| workflow_dispatch: | |
| jobs: | |
| health-check: | |
| name: Test CLI Installation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run install script | |
| run: | | |
| set -euo pipefail | |
| curl -fsSL https://composio.dev/install | bash | |
| echo "$HOME/.composio" >> "$GITHUB_PATH" | |
| - name: Verify installation | |
| run: | | |
| set -euo pipefail | |
| ls -la "$HOME/.composio" || true | |
| which composio | |
| composio --version | |
| - name: Send Slack Notification (Failure) | |
| if: failure() | |
| uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 | |
| with: | |
| payload: | | |
| { | |
| "text": "⚠️ CLI Install Health Check Failed!\n*Repository:* ${{ github.repository }}\n*Workflow:* ${{ github.workflow }}\n*Run:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n*Commit:* ${{ github.sha }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }} |