Skip to content

Instantly share code, notes, and snippets.

@stefanjudis
Created January 12, 2021 11:24
Show Gist options
  • Save stefanjudis/d9a814bf59c8eadc979feaa32f6c2398 to your computer and use it in GitHub Desktop.
Save stefanjudis/d9a814bf59c8eadc979feaa32f6c2398 to your computer and use it in GitHub Desktop.
Rebuild cron
# /.github/workflows/main.yml
name: Trigger Netlify Build
on:
schedule:
# Every day at midnight
- cron: '0 0 * * *'
jobs:
build:
name: Netlify build
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} https://api.netlify.com/build_hooks/...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment