Skip to content

Update PBP Related Data #26

Update PBP Related Data

Update PBP Related Data #26

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:
- id: query_seasons
run: |
if [ ${{ inputs.full_rebuild }} == false ]
then
echo "seasons=$(gh release list -R nflverse/nflverse-pbp --json tagName --jq '[[.[].tagName | match("\\d+") | .string ] | max]')" > "$GITHUB_OUTPUT"
else
echo "seasons=$(gh release list -R nflverse/nflverse-pbp --json tagName --jq '[.[].tagName | match("\\d+") | .string ]')" > "$GITHUB_OUTPUT"
fi
job2:
needs: pbp_setup
name: ${{ matrix.season }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
season: ${{ fromJson(needs.pbp_setup.outputs.seasons) }}
env:
SEASON: ${{ matrix.season }}
steps:
- name: Output
run: echo "${{ matrix.season }}"