-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (39 loc) · 1.14 KB
/
pre-commit-autoupdate.yml
File metadata and controls
48 lines (39 loc) · 1.14 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Pre-commit Auto-update
on:
schedule:
# Run every Monday at 9am UTC
- cron: "0 9 * * 1"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore/pre-commit-autoupdate
delete-branch: true
title: "chore(deps): update pre-commit hooks"
body: |
## Pre-commit Hook Updates
This PR updates pre-commit hooks to their latest versions.
Auto-generated by GitHub Actions.
labels: |
dependencies
pre-commit
automerge
commit-message: "chore(deps): update pre-commit hooks"