Created
February 25, 2020 18:38
-
-
Save mornir/e802834187475c28de75052d68063125 to your computer and use it in GitHub Desktop.
Trigger Sanity Backup through serverless function
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 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