Skip to content

Commit

Permalink
Add github action for pre-commit autoupdate hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
theodore86 committed Feb 2, 2023
1 parent 4384217 commit 7f764c3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pre-commit.yml
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

0 comments on commit 7f764c3

Please sign in to comment.