diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml new file mode 100644 index 0000000..31340f8 --- /dev/null +++ b/.github/workflows/pre-commit-auto-update.yml @@ -0,0 +1,25 @@ +name: Pre-commit auto-update + +on: + workflow_dispatch: + +jobs: + update-pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Update dependencies + run: | + python -m pip install --upgrade pip + pip install pre-commit + pre-commit autoupdate + + - name: Create pull request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: Update pre-commit dependencies + title: Update pre-commit dependencies