From f0be6689cddb687edc9b7d02263336b53d28a70e Mon Sep 17 00:00:00 2001 From: Russell Martin Date: Wed, 1 Feb 2023 13:47:29 -0500 Subject: [PATCH 1/2] Add GitHub workflow to keep `pre-commit` hooks up-to-date --- .github/workflows/pre-commit-update.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/pre-commit-update.yml diff --git a/.github/workflows/pre-commit-update.yml b/.github/workflows/pre-commit-update.yml new file mode 100644 index 0000000000..2bc6a36f5a --- /dev/null +++ b/.github/workflows/pre-commit-update.yml @@ -0,0 +1,12 @@ +name: Update pre-commit + +on: + schedule: + - cron: "0 20 * * SUN" # Sunday @ 2000 UTC + workflow_dispatch: + +jobs: + pre-commit-update: + name: Update pre-commit + uses: beeware/.github/.github/workflows/pre-commit-update.yml@main + secrets: inherit From 1636d65e21f86dec72b061c6ac140dd86efc7035 Mon Sep 17 00:00:00 2001 From: Russell Martin Date: Wed, 1 Feb 2023 13:49:12 -0500 Subject: [PATCH 2/2] Add changenote. --- changes/1764.misc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/1764.misc.rst diff --git a/changes/1764.misc.rst b/changes/1764.misc.rst new file mode 100644 index 0000000000..6b137cfc85 --- /dev/null +++ b/changes/1764.misc.rst @@ -0,0 +1 @@ +A GitHub workflow now runs every Sunday at 2000 UTC to check for updates to ``pre-commit`` hooks and commits them to a new PR.