Skip to content

dependabot for pre-commit #102

dependabot for pre-commit

dependabot for pre-commit #102

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'