Skip to content

Commit 8546def

Browse files
authored
add pre-commit update workflow as dependabot does not support it yet (#387)
1 parent 5baf28b commit 8546def

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pre-commit auto-update
2+
3+
on:
4+
# every monday at midnight
5+
schedule:
6+
- cron: "0 0 * * 1"
7+
# on demand
8+
workflow_dispatch:
9+
10+
jobs:
11+
upgrade:
12+
uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1.21.0
13+
secrets:
14+
gh_pat: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
15+
with:
16+
# Inputs listed with their default (all optional)
17+
config_path: ".pre-commit-config.yaml" # path is relative to repository root
18+
python_version: "3.11"
19+
branch_name: "update/pre-commit-hooks"
20+
pull_request_title: "chore: upgrade pre-commit dependencies"
21+
commit_message: "chore: upgrade pre-commit dependencies"

0 commit comments

Comments
 (0)