Scheduled Update #145
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: Scheduled Update | |
| on: | |
| schedule: | |
| - cron: '45 14 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses : actions/checkout@v4 | |
| - name : Setup Python | |
| uses : actions/setup-python@v2 | |
| with : | |
| python-version : "3.8" | |
| - name : Install Dependencies | |
| run : | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name : Run AtCoder AutoClone | |
| run : | | |
| python src/init_exec.py | |
| ls | |
| - name : Commit and Push | |
| id : git_update | |
| continue-on-error: true | |
| run : | | |
| git config user.name "AutoCloneBot" | |
| git config user.email "acautoclone@bot.com" | |
| git add . | |
| git commit -m "Added my codes from AtCoder" | |
| git pull | |
| git push origin main | |
| - name : Error Handling | |
| if : ${{steps.git_update.outcome == 'failure'}} | |
| run : | | |
| echo "No new submissions found. Your repo were not updated" | |