Update-Depth-Charts #1136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")' |