Update NBA Standings #217
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: Update NBA Standings | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 3 * * *' | |
timezone: America/Chicago | |
workflow_dispatch: | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv install | |
- name: Set up environment | |
run: | | |
echo "APIKEY=${{ secrets.APIKEY }}" >> $GITHUB_ENV | |
- name: UpdateNBAStandings | |
env: | |
APIKEY: ${{ secrets.APIKEY }} | |
run: | | |
export BASE_FOLDER=$GITHUB_WORKSPACE | |
export PYTHON_SCRIPT='stats_calling.py' | |
TZ=America/Chicago pipenv run python3 ${PYTHON_SCRIPT} | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jackie Wang" | |
git add README.md | |
git commit -m "Update NBA Standings" | |
git push origin main |