archive_nflversedata #46
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: | |
# At 15:15 on Thursdays every week in Sep - Jan | |
- cron: '15 15 * 9-12,1 4' | |
# At 15:15 on the 15th day of each month from Feb -> Aug | |
- cron: '15 15 15 2-8 *' | |
workflow_dispatch: | |
name: archive_nflversedata | |
jobs: | |
update_snap_counts: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: ubuntu-20.04, r: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 1 | |
extra-packages: | | |
ropensci/piggyback | |
r-lib/pkgload | |
nflverse/nflreadr | |
- name: Archive all nflverse data | |
run: Rscript -e 'source("dev/run_archive.R")' |