From 92e59d1df6c9b8a854a75eb22d551c5737880699 Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Sun, 5 Dec 2021 18:55:33 +0300 Subject: [PATCH] Add pre-commit autoupdate workflow --- .github/workflows/pre-commit-autoupdate.yml | 26 +++++++++++++++++++++ 1 file changed, 26 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 00000000..0317e051 --- /dev/null +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -0,0 +1,26 @@ +name: Autoupdate pre-commit hooks + +on: + schedule: + # Every day at 7 am + - cron: 0 7 * * * + +jobs: + pre-commit-autoupdate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Update pre-commit hooks + uses: vrslev/pre-commit-autoupdate@v1.0.0 + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + branch: pre-commit-autoupdate + title: "chore(deps): Update pre-commit hooks" + commit-message: "chore(deps): Update pre-commit hooks" + body: Update pre-commit hooks + labels: dependencies,development + delete-branch: True