Trigger Netlify Build #976
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
name: Trigger Netlify Build | |
on: | |
schedule: | |
# Run at 3AM daily | |
- cron: '0 3 * * *' | |
jobs: | |
build: | |
name: Request Netlify Webhook | |
runs-on: ubuntu-latest | |
steps: | |
# Ensures Action doesn't run on Forks (BUILD_HOOK must be configured) | |
- if: github.repository == 'inevitable-team/compiled-mcr-events' | |
name: Curl request | |
run: curl -X POST -d {} ${{ secrets.BUILD_HOOK }} |