-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.12 KB
/
update_nba_standings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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