Periodic solutions update #275
This file contains hidden or 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: Periodic solutions update | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
download_new_files: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: update | |
env: | |
CW_COOKIE: ${{ secrets.CW_COOKIE }} | |
run: | | |
python main.py | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
file_pattern: 'output/*.py' | |
branch: master | |
commit_message: Automated update |