Skip to content

Instantly share code, notes, and snippets.

@mcnaveen
Last active June 22, 2022 06:32
Show Gist options
  • Save mcnaveen/9856a6cb4df0dbbe518e6550a2598e42 to your computer and use it in GitHub Desktop.
Save mcnaveen/9856a6cb4df0dbbe518e6550a2598e42 to your computer and use it in GitHub Desktop.
Scheduled Netlify Build with GitHub Actions
# .github/workflows/main.yml
name: Trigger Netlify Build
on:
schedule:
# Run at 0000 daily
- cron: '0 0 * * *'
jobs:
build:
name: Request Netlify Webhook
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} URL_GOT_FROM_NETLIFY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment