Update Submission Progress #89
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 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 |