Skip to content

Update-Depth-Charts #1178

Update-Depth-Charts

Update-Depth-Charts #1178

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-Depth-Charts
jobs:
Update-Depth-Charts:
name: Update-Depth-Charts
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }}
NFLDX_PASSWORD: ${{ secrets.NFLDX_PASSWORD }}
NFLDX_USERNAME: ${{ secrets.NFLDX_USERNAME }}
steps:
- uses: actions/checkout@v3
- 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
janitor
- name: Update Depth Charts
run: Rscript -e 'source("src/update-depth-charts.R")'