-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 919 Bytes
/
auto_update.yml
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
name: Auto Update
on:
schedule:
- cron: '10 10 15 * *'
jobs:
precommit-update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10.x"
- name: Run update
run: |
pip install pre-commit
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
author: GitHub <[email protected]>
add-paths: .pre-commit-config.yaml
commit-message: Auto pre-commit update
body: |
Update pre-commit hooks to latest
Auto generated
branch: auto-update/precommit_update
delete-branch: true
title: Auto precommit update
labels: automated-pr
assignees: egecetin