From d3e980209ba17575326cea7549928679fdec27de Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 22 Feb 2024 18:28:34 +0100 Subject: [PATCH] Create pre-commit-autoupdate.yml --- .github/workflows/pre-commit-autoupdate.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pre-commit-autoupdate.yml diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml new file mode 100644 index 0000000..9aa3d58 --- /dev/null +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -0,0 +1,25 @@ +name: Pre-commit autoupdate + +on: + # every month + schedule: + - cron: "0 0 1 * *" + # on demand + workflow_dispatch: + +jobs: + auto-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + - uses: browniebroke/pre-commit-autoupdate-action@main + - uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: update/pre-commit-hooks + title: Update pre-commit hooks + commit-message: "Update pre-commit hooks." + body: Update versions of pre-commit hooks to latest version.