Scheduled Cloudflare Rebuild Trigger #8
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/workflows/rebuild.yml | |
| # Name of the workflow as it appears in GitHub Actions | |
| name: Scheduled Cloudflare Rebuild Trigger | |
| # Triggers for this workflow | |
| on: | |
| # Allows manual triggering via the GitHub Actions UI ("Run workflow" button) | |
| workflow_dispatch: | |
| # Runs daily at 00:00 UTC (or your preferred schedule) | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| # This job only exists to ping Cloudflare to start a build | |
| trigger: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Trigger Cloudflare Pages Build Hook | |
| - name: Trigger Cloudflare Pages Build | |
| run: | | |
| curl -X POST "${{ secrets.CLOUDFLARE_BUILD_HOOK }}" |