Skip to content

feat: Prepare miniTB 2023-2024 #267

feat: Prepare miniTB 2023-2024

feat: Prepare miniTB 2023-2024 #267

Workflow file for this run

name: MiniTB Daily Standings Update

Check failure on line 1 in .github/workflows/daily-minitb.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/daily-minitb.yml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
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 }}