forked from zerostaticthemes/jekyll-serif-theme
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 1.29 KB
/
calendar.yml
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
34
35
36
name: Update calendar events
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-calendar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: production
token: ${{secrets.CALENDAR_PAT}}
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm install
name: prepare npm environment
working-directory: _utils/calendar_sync
- run: node sync.js "${{secrets.CALENDAR_URL}}" "../../_data/calendar.yaml"
name: fetch bdsi calendar events
working-directory: _utils/calendar_sync
- run: node ut-events-scraper.js "${{secrets.BMSLAB_EVENTS_URL}}" "bms-lab" "../../_data/bmslab_events.yaml"
name: fetch bmslab events
working-directory: _utils/calendar_sync
- run: node ut-events-scraper.js "${{secrets.DCC_EVENTS_URL}}" "dcc" "../../_data/dcc_events.yaml"
name: fetch dcc events
working-directory: _utils/calendar_sync
- run: node ut-events-scraper.js "${{secrets.DSI_EVENTS_URL}}" "dsi" "../../_data/dsi_events.yaml"
name: fetch dcc events
working-directory: _utils/calendar_sync
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: automated calendar update