Skip to content

Commit

Permalink
Merge pull request #37 from john-b-edwards/new-roster-work
Browse files Browse the repository at this point in the history
New roster work
  • Loading branch information
mrcaseb committed Aug 1, 2022
2 parents 800c1c2 + 5b424d9 commit 6929f17
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 150 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update_rosters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
extra-packages: |
nflverse/nflreadr
nflverse/nflverse-data
nflverse/nflapi
nflverse/ngsscrapR
- name: Update rosters
run: Rscript -e 'source("src/update_roster.R")'
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/update_weekly_rosters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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-Weekly

jobs:
update-rosters-weekly:
name: Update-Rosters-Weekly
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }}

steps:
- uses: actions/checkout@v2

- 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/ngsscrapR
- name: Update weekly rosters
run: Rscript -e 'source("src/update-weekly-rosters.R")'
Loading

0 comments on commit 6929f17

Please sign in to comment.