Vercel Error Monitor #1727
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: Vercel Error Monitor | |
| on: | |
| schedule: | |
| - cron: '*/10 * * * *' # Every 10 minutes | |
| workflow_dispatch: # Manual trigger | |
| jobs: | |
| monitor-errors: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install Vercel CLI | |
| run: npm i -g vercel | |
| - name: Fetch and Monitor Errors | |
| timeout-minutes: 2 | |
| env: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| run: node scripts/monitor-vercel-errors.js |