Firebase Cleanup Cron Job #5
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: Firebase Cleanup Cron Job | |
| on: | |
| schedule: | |
| # First day of every month | |
| - cron: '0 0 1 * *' | |
| workflow_dispatch: | |
| jobs: | |
| cron: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run storage cleanup | |
| run: | | |
| curl -f -s -X POST \ | |
| -H "Authorization: Bearer ${{ secrets.FIREBASE_CRON_JOB_API_KEY }}" \ | |
| 'https://bypass-links.vercel.app/api/storage-cleanup' | grep -q 'Cleanup successful' |