-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action for pre-commit autoupdate hooks
- Loading branch information
1 parent
4384217
commit 7f764c3
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Pre-commit hooks auto-update | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
pre-commit-hooks-auto-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: "actions/checkout@v3.0.2" | ||
- uses: "actions/setup-python@v4.5.0" | ||
- uses: "browniebroke/pre-commit-autoupdate-action@v1.0.0" | ||
- uses: peter-evans/create-pull-request@v4 | ||
with: | ||
branch: update/pre-commit-hooks | ||
title: Update pre-commit hooks | ||
commit-message: "Update pre-commit hooks" | ||
labels: | | ||
pre-commit | ||
github action | ||
body: | | ||
- Update versions of pre-commit hooks to the latest version |