-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1020 Bytes
/
pre-commit_updates.yml
File metadata and controls
35 lines (32 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: dependabot for pre-commit
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 19 * * 5' # monthly
workflow_dispatch:
jobs:
update_pre-commit:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v4
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'