Import Eventbrite events on a CRON Schedule #33
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: Import Eventbrite events on a CRON Schedule | |
on: | |
schedule: | |
# Runs every Friday at 8:00am | |
- cron: '0 8 * * 5' | |
push: | |
branches: | |
- 'eventbrite_integration' | |
jobs: | |
build: | |
name: Import Eventbrite events | |
runs-on: ubuntu-latest | |
steps: | |
- name: cURL request | |
# Hit the API endpoint to trigger an import | |
run: | | |
curl -s -X POST https://www.connectedkw.com/api/import-events \ | |
-d '{"source":"eventbrite"}' \ | |
-H 'Content-Type: application/json' \ | |
-H 'Authorization: Bearer ${{ secrets.UNBORING_SECRET_KEY }}' \ |