Twitch Subscription Health Check #7933
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: Twitch Subscription Health Check | |
| on: | |
| schedule: | |
| # Run every hour | |
| - cron: '0 * * * *' | |
| # Allow manual trigger for testing | |
| workflow_dispatch: | |
| jobs: | |
| health-check: | |
| name: Check Twitch Subscription Health | |
| runs-on: ubuntu-latest | |
| environment: prod | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Delete Steam package.json | |
| run: rm -f packages/steam/package.json | |
| - name: Install dependencies | |
| # Install at the root level to set up workspace packages properly | |
| run: bun install | |
| - name: Build all packages | |
| run: bun run build:all | |
| - name: Run Health Check | |
| working-directory: ./packages/twitch-events | |
| env: | |
| # Add all required environment variables from your Doppler secrets | |
| TWITCH_CLIENT_ID: ${{ secrets.TWITCH_CLIENT_ID }} | |
| TWITCH_CLIENT_SECRET: ${{ secrets.TWITCH_CLIENT_SECRET }} | |
| TWITCH_BOT_PROVIDERID: ${{ secrets.TWITCH_BOT_PROVIDERID }} | |
| DB_SECRET: ${{ secrets.DB_SECRET }} | |
| DB_URL: ${{ secrets.DB_URL }} | |
| # Add any other required environment variables | |
| run: bun run subscription-health-check |