-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 897 Bytes
/
update.yml
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
name: Update Awards
on:
push:
schedule:
- cron: '15 6 * * *' # everyday
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update Awards
run: |
python nsf_awards.py
- name: Upload Awards
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Yimin Zhong"
git add -A
git commit -m "Update Awards" || echo "No changes"
git push