MiniTB Daily Standings Update #272
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
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 }} |