.github/workflows/update.yml #112
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
on: | |
schedule: | |
- cron: '5 20 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PYTHON | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run Python code | |
run: python update.py | |
- name: Commit Changes | |
run: | | |
git config --global user.name 'Victorsitou' | |
git config --global user.email '[email protected]' | |
git push | |
git add . | |
git commit -m "Update events" | |
git push |