Update OTC Player IDs #464
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 = 3AM ET | |
- cron: '0 7 * * *' | |
workflow_dispatch: | |
name: Update OTC Player IDs | |
jobs: | |
update: | |
name: update data | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
env: | |
GITHUB_PAT: ${{ secrets.NFLVERSE_GH_TOKEN }} | |
OTC_PLAYERID_ENDPOINT: ${{ secrets.OTC_PLAYERID_ENDPOINT }} | |
OTC_API_KEY: ${{ secrets.OTC_API_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 1 | |
extra-packages: | | |
nflverse/nflverse-data | |
nflverse/nflreadr | |
local::. | |
any::arrow | |
any::qs | |
- name: Run otc update script | |
run: Rscript data-raw/release_otc_player_ids.R |