Skip to content

MiniTB Daily Standings Update #272

MiniTB Daily Standings Update

MiniTB Daily Standings Update #272

Workflow file for this run

name: MiniTB Daily Standings Update
on:
schedule:
# runs every day at 6:10 (UTC)
- cron: '10 6 * * *'
workflow_dispatch:
jobs:
get_and_push_standings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- run: pip install requests numpy nba_api
- run: python scripts/daily_minitb.py
id: retry1
continue-on-error: true
env:
PASSWORD: ${{ secrets.FIREBASE_DB_ADMIN_PASSWORD }}
- run: python scripts/daily_minitb.py
id: retry2
if: steps.retry1.outcome == 'failure'
continue-on-error: true
env:
PASSWORD: ${{ secrets.FIREBASE_DB_ADMIN_PASSWORD }}
- run: python scripts/daily_minitb.py
id: retry3
if: steps.retry2.outcome == 'failure'
env:
PASSWORD: ${{ secrets.FIREBASE_DB_ADMIN_PASSWORD }}