Skip to content

Commit

Permalink
Merge pull request #11 from jpthiele/precommit-autoupdate
Browse files Browse the repository at this point in the history
[CI] add update check for pre-commit hooks
  • Loading branch information
jpthiele authored Nov 27, 2024
2 parents e491f74 + 98e1297 commit 61fdbe2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pre-commit auto-update

on:
schedule:
- cron: '0 0 * * *'

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: install pre-commit
run: pip install pre-commit
- name: run autoupdate
run: pre-commit autoupdate
- name: create PR
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-autoupdate
title: 'Auto-update pre-commit hooks'
commit-message: '[Dependencies] auto update pre-commit hook'
labels: dependencies

0 comments on commit 61fdbe2

Please sign in to comment.