Skip to content

Instantly share code, notes, and snippets.

@mornir
Created February 25, 2020 18:38
Show Gist options
  • Save mornir/e802834187475c28de75052d68063125 to your computer and use it in GitHub Desktop.
Save mornir/e802834187475c28de75052d68063125 to your computer and use it in GitHub Desktop.
Trigger Sanity Backup through serverless function
name: Trigger Backup
on:
schedule:
# Runs at 04:00 UTC on the 1st and 17th of every month
- cron: '0 4 */16 * *'
jobs:
build:
name: Trigger Netlify Function
runs-on: ubuntu-latest
steps:
- name: Curl request
run: curl -X POST -d {} ENDPOINT_OF_YOUR_CLOUD_FUNCTION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment