Eventbrite Ticket Sync #2742
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: Eventbrite Ticket Sync | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "*/15 * * * *" | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Run Eventbrite sync | |
| env: | |
| EVENTBRITE_TOKEN: ${{ secrets.EVENTBRITE_TOKEN }} | |
| EVENTBRITE_EVENT_ID: ${{ secrets.EVENTBRITE_EVENT_ID }} | |
| run: | | |
| node scripts/eventbrite.js | |
| - name: Commit changes (if any) | |
| run: | | |
| if git diff --quiet; then | |
| echo "No changes" | |
| else | |
| git config user.name "eventbrite-bot" | |
| git config user.email "eventbrite-bot@users.noreply.github.com" | |
| git add . | |
| git commit -m "Update Eventbrite ticket stats" | |
| git push | |
| fi |