-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (26 loc) · 902 Bytes
/
update.yml
File metadata and controls
33 lines (26 loc) · 902 Bytes
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
name: Update Scholar Counts
on:
schedule:
- cron: "0 6 1 * *" # Run at 06:00 UTC on the 1st of every month
workflow_dispatch: # allow manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run script
run: python scholar_counts.py
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add scholar_counts.csv scholar_counts.png
git commit -m "Weekly update of scholar counts [ci skip]" || echo "No changes"
git push