Skip to content

Scheduled Cloudflare Rebuild Trigger #8

Scheduled Cloudflare Rebuild Trigger

Scheduled Cloudflare Rebuild Trigger #8

Workflow file for this run

# .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 }}"