Skip to content

Pre-commit auto-update #8

Pre-commit auto-update

Pre-commit auto-update #8

name: Pre-commit auto-update
on:
# every Sunday at midnight
schedule:
- cron: "0 0 * * 0"
# on demand
workflow_dispatch:
# enable this workflow to be reused
workflow_call:
jobs:
auto-update:
name: Checking `pre-commit` hooks updates
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Pre-installing requirements
uses: browniebroke/[email protected]
- name: Create PR to Update configs
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: 'misc: version bump `pre-commit` hook plugins'
commit-message: 'misc: version bump `pre-commit` hook plugins'
body: |
Update plugins of `pre-commit` hooks to the latest version.
SKIP-BUILD