Skip to content

Instantly share code, notes, and snippets.

@IlanVivanco
Last active May 12, 2021 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IlanVivanco/fd2b6f0da7e5ed8bd4964a0520e99059 to your computer and use it in GitHub Desktop.
Save IlanVivanco/fd2b6f0da7e5ed8bd4964a0520e99059 to your computer and use it in GitHub Desktop.
Github workflow cron
# .github/workflows/cron.yml
# You must add your YOUR_BUILD_HOOK from your repo > Settings > Secrets
name: Trigger Netlify Build
on:
schedule:
# Run at 0815 daily
- cron: '15 8 * * *'
jobs:
build:
name: Request Netlify Webhook
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} YOUR_BUILD_HOOK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment