Skip to content

Commit e6c4acf

Browse files
committed
Add pre-commit-autoupdate github workflow action
1 parent d503915 commit e6c4acf

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pre-commit auto-update
2+
3+
on:
4+
# every day at midnight
5+
schedule:
6+
- cron: "0 0 * * *"
7+
# on demand
8+
workflow_dispatch:
9+
10+
jobs:
11+
auto-update:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- uses: browniebroke/pre-commit-autoupdate-action@main
17+
- uses: peter-evans/create-pull-request@v3
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
branch: update/pre-commit-hooks
21+
title: Update pre-commit hooks
22+
commit-message: "chore: update pre-commit hooks"
23+
body: Update versions of pre-commit hooks to latest version.

0 commit comments

Comments
 (0)