Schedule Netlify Build #869
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/schedule-netlify-build.yml | |
name: Schedule Netlify Build | |
on: | |
schedule: | |
# Customize schedule expression at crontab.guru | |
# This one runs at 800 UTC daily | |
- cron: "0 8 * * *" | |
jobs: | |
build: | |
name: Call Netlify build hook | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Curl request | |
run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_WEBHOOK_API }} |