Trigger Cloudflare Rebuild #1
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
| # Trigger Cloudflare Pages rebuild on schedule | |
| # The actual index build happens during Cloudflare's build step | |
| name: Trigger Cloudflare Rebuild | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| trigger: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Cloudflare Pages deploy | |
| run: | | |
| curl -s -X POST "${{ vars.CLOUDFLARE_DEPLOY_HOOK_URL }}" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"branch":"main"}' |