-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 1.04 KB
/
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
39
name: Update Submission Progress
on:
schedule:
- cron: '0 0 * * *' # Run every day at midnight
workflow_dispatch: # This allows manual triggering
jobs:
update-progress:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Required Packages
run: |
python -m pip install --upgrade pip
pip install matplotlib
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "sliming-ai"
- name: Run Update Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python update.py
git add README.md
now=$(date)
git commit -m "Update submission progress on $now"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/sliming-ai/sliming-ai.github.io.git HEAD:main