Skip to main content
EVOKORE// WORKFLOWS / cli.install-health-check.yml
ComposioHQ/composioworkflow · 38 lines

workflows/cli.install-health-check.yml

CI / automation

View on GitHub →
# REFERENCE-ONLY: GitHub Actions secrets referenced below are illustrative.
# Do not inject real credentials. See your CI/CD provider for proper secret management.
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: <YOUR_WEBHOOK_URL>