Update New Contests #43
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: new-contests | |
run-name: Update New Contests | |
on: | |
schedule: | |
- cron: "30 4 * * *" | |
jobs: | |
update-contests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: install-dependencies | |
run: python -m pip install -r requirements.txt | |
- name: new-contests | |
run: python main.py | |
- name: commit-changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "actions@github.com" | |
git add . | |
git commit -m "update contests" | |
git push origin main --force | |