Skip to content

Instantly share code, notes, and snippets.

@rafael-neri
Created January 10, 2022 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafael-neri/584f75c284df337db6d0cbdce7177972 to your computer and use it in GitHub Desktop.
Save rafael-neri/584f75c284df337db6d0cbdce7177972 to your computer and use it in GitHub Desktop.
Schedule 15 minutes from GitHub - Cron
name: 15-minute-schedule
on:
schedule:
- cron: '*/15 * * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: Call your API route
run: |
curl --request POST \
--url 'https://yoursite.com/api/route' \
--header 'Authorization: Bearer ${{ secrets.API_SECRET_KEY }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment