-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from john-b-edwards/new-roster-work
New roster work
- Loading branch information
Showing
3 changed files
with
352 additions
and
150 deletions.
There are no files selected for viewing
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
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
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")' |
Oops, something went wrong.