-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.14 KB
/
pre-commit-autoupdate.yml
File metadata and controls
43 lines (36 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
---
name: Pre-commit auto-update
on: # yamllint disable-line rule:truthy
workflow_dispatch:
schedule:
- cron: 0 0 1 * *
permissions:
contents: write
pull-requests: write
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- 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@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: pre-commit-autoupdate
title: Auto-update pre-commit hooks
commit-message: Auto-update pre-commit hooks
committer: >-
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: >-
${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
sign-commits: true
body: |
Update pre-commit hooks to latest version
labels: dependencies
draft: false