Skip to content

Cloudflare Pages deploy hook #347

Cloudflare Pages deploy hook

Cloudflare Pages deploy hook #347

name: 'Cloudflare Pages deploy hook'
on:
schedule:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# https://crontab.guru/
- cron: '57 23 * * *' # UTC time
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
# You can trigger this workflow manually using the GitHub CLI:
# gh workflow run "Cloudflare Pages deploy hook" --ref branch-name
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout repo
uses: actions/checkout@v4
- name: 🌐 Trigger build on Cloudflare Pages
# https://github.com/marketplace/actions/http-request-action
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }}
method: 'POST'