-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 812 Bytes
/
Copy patheventbrite.yml
File metadata and controls
33 lines (28 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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