Import Explore Waterloo events on a CRON Schedule #17
This file contains hidden or 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 Explore Waterloo events on a CRON Schedule | |
| on: | |
| schedule: | |
| # Runs every Wednesday at 7:40am | |
| - cron: '40 7 * * 3' | |
| push: | |
| branches: | |
| - 'explore_integration' | |
| jobs: | |
| build: | |
| name: Import Explore Waterloo 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/events/import \ | |
| -d '{"source":"Explore Waterloo"}' \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Authorization: Bearer ${{ secrets.CONNECTEDKW_SECRET_KEY }}' \ |