-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (32 loc) · 961 Bytes
/
pre-commit-update.yml
File metadata and controls
32 lines (32 loc) · 961 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
name: Pre-Commit Update
on:
schedule:
- cron: "0 12 * * 0" # run once a week on Sunday
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pre-commit-update:
permissions:
contents: read
pull-requests: write
strategy:
matrix:
python-version:
- 3.11
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Check for pre-commit dependency updates
# This fails, if there is a new version available,
# Update to the new version number in
# .pre-commit-config.yaml and config/default/pre-commit-config.yaml.j2.
run: |
pre-commit autoupdate
git diff --exit-code