Skip to content

Commit 65ce385

Browse files
maresbbrandonwillard
authored andcommitted
Add GHA workflow to autoupdate pre-commit hooks
1 parent 0f8d849 commit 65ce385

File tree

1 file changed

+28
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)