Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New roster work #37

Merged
merged 10 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

john-b-edwards marked this conversation as resolved.
Show resolved Hide resolved
- name: Update weekly rosters
run: Rscript -e 'source("src/update-weekly-rosters.R")'
Loading