-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 943 Bytes
/
scrape-stats.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
name: scrape-stats
on:
schedule:
# Every day of August @ 3:30am EST (7:30 UTC)
- cron: '30 7 * 8 *'
# Days 1-15 of September @ 3:30am EST (7:30 UTC)
- cron: '30 7 1-15 9 *'
# Every Tuesday of all other months @ 3:30am EST (7:30 UTC)
- cron: '30 7 * 1-7,10-12 2'
jobs:
scrape-stats:
runs-on: macos-latest
steps:
- name: Checkout Chron Branch
uses: actions/checkout@v3
with:
ref: master
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 16
check-latest: true
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run Scraper Script
run: node scraper.js
- name: Commit and Push
run: |
git add ffb-app/public/stats.json ffb-app/public/stats-timestamp.json
git commit -m "automated player stats update"
git push