Skip to content

update_players

update_players #8

on:
schedule:
# runs every monday at 7:00 AM UTC
- cron: '0 7 * * 1'
workflow_dispatch:
name: update_players
jobs:
update_snap_counts:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
extra-packages: |
nflverse/nflverse-data
ropensci/piggyback
local::.
- name: Update player data
run: Rscript -e 'nflversepff::scrape_players_to_release()'