Cleanup Uploaded Files #447
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
| # GitHub Actions workflow to clean up uploaded files on Render | |
| # This runs every 5 hours | |
| # The workflow calls the cleanup API endpoint | |
| name: Cleanup Uploaded Files | |
| on: | |
| schedule: | |
| # Run every 5 hours | |
| - cron: '0 */5 * * *' | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| cleanup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger cleanup endpoint | |
| run: | | |
| curl -X POST \ | |
| -H "Content-Type: application/json" \ | |
| "${{ secrets.CLEANUP_ENDPOINT_URL }}" \ | |
| -d '{"secret": "${{ secrets.CLEANUP_SECRET }}"}' |