Skip to content

Commit 193d661

Browse files
authored
Add workflow update pre-commit versions (#1541)
1 parent 7318999 commit 193d661

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
16+
- uses: actions/setup-python@v2
17+
18+
- uses: browniebroke/pre-commit-autoupdate-action@main
19+
20+
- uses: peter-evans/create-pull-request@v3
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
branch: update/pre-commit-hooks
24+
title: Update pre-commit hooks
25+
commit-message: "chore: update pre-commit hooks"
26+
body: Update versions of pre-commit hooks to latest version.

0 commit comments

Comments
 (0)