From 3a351069db13850fccc33f01164c31db4b831f7d Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Wed, 29 Oct 2025 17:09:15 +0100 Subject: [PATCH] add pre-commit update workflow as dependabot does not support it yet --- .github/workflows/pre-commit-update.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pre-commit-update.yml diff --git a/.github/workflows/pre-commit-update.yml b/.github/workflows/pre-commit-update.yml new file mode 100644 index 000000000..8cbd5a663 --- /dev/null +++ b/.github/workflows/pre-commit-update.yml @@ -0,0 +1,21 @@ +name: Pre-commit auto-update + +on: + # every monday at midnight + schedule: + - cron: "0 0 * * 1" + # on demand + workflow_dispatch: + +jobs: + upgrade: + uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1.21.0 + secrets: + gh_pat: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + with: + # Inputs listed with their default (all optional) + config_path: ".pre-commit-config.yaml" # path is relative to repository root + python_version: "3.11" + branch_name: "update/pre-commit-hooks" + pull_request_title: "chore: upgrade pre-commit dependencies" + commit_message: "chore: upgrade pre-commit dependencies"