Skip to content

Trigger API Calls #23802

Trigger API Calls

Trigger API Calls #23802

Workflow file for this run

name: Trigger API Calls
on:
schedule:
# Runs every hour
- cron: '0 * * * *'
jobs:
build:
name: Trigger Production Build (clear cache)
runs-on: ubuntu-latest
steps:
- name: Curl request
run: 'curl -XPOST -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.NETLIFY_TOKEN }}" -d "{\"clear_cache\": true}" "https://api.netlify.com/api/v1/sites/${{ secrets.NETLIFY_SITE_ID }}/builds"'