dependabot for pre-commit #96
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: dependabot for pre-commit | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 19 * * 5' # At 19:00 on Friday. | |
workflow_dispatch: | |
jobs: | |
update_pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
cache: 'pip' | |
cache-dependency-path: 'requirements_dev.txt' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
- name: install update pre-commit | |
run: | | |
pre-commit autoupdate | |
pre-commit autoupdate --config .pre-commit-only-line-endings-config.yaml | |
- name: Commit pre-commit file if changed | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'Automated Change: updated pre-commit requirements' |