Skip to content

scrape-stats

scrape-stats #143

Workflow file for this run

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