Keep Supabase Alive #66
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: Keep Supabase Alive | |
| on: | |
| schedule: | |
| - cron: '0 */12 * * *' # Runs every 12 hours | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| keep-alive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: | | |
| cd keep-alive | |
| npm install | |
| - name: Run keep-alive script | |
| env: | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | |
| run: | | |
| cd keep-alive | |
| node keep-alive.js | |
| continue-on-error: true # Prevents workflow failure if script errors |