Skip to content

Update-Rosters

Update-Rosters #1174

on:
schedule:
# runs every day at 7:00 AM UTC
- cron: '0 7 * * *'
# push:
# paths:
# - R/update_roster.R
#- R/update-injuries.R
workflow_dispatch:
name: Update-Rosters
jobs:
update-rosters:
name: Update-Rosters
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
nflverse/nflreadr
nflverse/nflverse-data
nflverse/nflapi
nflverse/ngsscrapR
- name: Update rosters
run: Rscript -e 'source("src/update_roster.R")'