From 2c0086384ce56fd57b826c61072de545e40a5e8d Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Thu, 30 May 2024 12:32:45 -0400 Subject: [PATCH 1/2] Create pre-commit-updates.yml --- .github/workflows/pre-commit-updates.yml | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pre-commit-updates.yml diff --git a/.github/workflows/pre-commit-updates.yml b/.github/workflows/pre-commit-updates.yml new file mode 100644 index 0000000..681e085 --- /dev/null +++ b/.github/workflows/pre-commit-updates.yml @@ -0,0 +1,30 @@ +# from https://github.com/browniebroke/pre-commit-autoupdate-action +name: Pre-commit auto-update +on: + # every day at midnight + schedule: + - cron: "0 16 * * 3" + # on demand + workflow_dispatch: + +jobs: + auto-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + + - uses: browniebroke/pre-commit-autoupdate-action@main + + - uses: peter-evans/create-pull-request@v6 + if: always() + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: update/pre-commit-hooks + delete-branch: true + labels: dependencies + title: "Update pre-commit hooks" + commit-message: "chore: update pre-commit hooks" + body: Update versions of pre-commit hooks to the latest version. + add-paths: ".pre-commit-config.yaml" From 31801b6eb2140ffe6b7e3e63d7146c6fdb8ab727 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Thu, 30 May 2024 12:35:35 -0400 Subject: [PATCH 2/2] Updates some versions in pre-commit workflow --- .github/workflows/pre-commit-updates.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit-updates.yml b/.github/workflows/pre-commit-updates.yml index 681e085..92bc303 100644 --- a/.github/workflows/pre-commit-updates.yml +++ b/.github/workflows/pre-commit-updates.yml @@ -11,11 +11,11 @@ jobs: auto-update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 - - uses: browniebroke/pre-commit-autoupdate-action@main + - uses: browniebroke/pre-commit-autoupdate-action@v1.0.0 - uses: peter-evans/create-pull-request@v6 if: always()