Skip to content

Update PBP Related Data #14

Update PBP Related Data

Update PBP Related Data #14

Workflow file for this run

on:
workflow_dispatch:
inputs:
full_rebuild:
description: 'Full Rebuild'
required: true
default: false
type: boolean
name: Update_PBP_Data
jobs:
pbp_setup:
runs-on: ubuntu-latest
name: pbp_setup
env:
GH_TOKEN: ${{ secrets.NFLVERSE_GH_TOKEN }}
outputs:
seasons: ${{ steps.query_seasons.outputs.seasons }}
steps:
- name: query_seasons
if: ${{ inputs.full_rebuild == false}}
run: |
echo "seasons=$(gh release list -R nflverse/nflverse-pbp --json tagName --jq '[[.[].tagName | match("\\d+") | .string ] | max]')" > $GITHUB_OUTPUT
echo "$GITHUB_OUTPUT"
- id: query_seasons
if: ${{ inputs.full_rebuild == true}}
run: gh release list -R nflverse/nflverse-pbp --json tagName --jq '[.[].tagName | match("\\d+") | .string ]'