From 1704942a847f805faf4803d8f13e07deefccbd92 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 6 Oct 2023 06:53:49 -0700 Subject: [PATCH] Add workflow to update pre-commit dependencies --- .github/workflows/pre-commit-auto-update.yml | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pre-commit-auto-update.yml 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