schedules #1061
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: schedules | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
pre-commit-auto-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: | | |
poetry update pre-commit | |
- name: Auto-update pre-commit-hooks | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email github-actions@github.com | |
poetry run pre-commit autoupdate | |
git commit -am "Update pre-commit" || true | |
git push || true |