diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a08e426..bebe39f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,3 +17,10 @@ updates: directory: "/" patterns: ["*"] multi-ecosystem-group: "dependencies" + + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + # Check for updates on the first Sunday of every month, 8PM UTC + interval: "cron" + cronjob: "0 20 * * sun#1" diff --git a/.github/workflows/pre-commit-update.yml b/.github/workflows/pre-commit-update.yml deleted file mode 100644 index 7a86d36..0000000 --- a/.github/workflows/pre-commit-update.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Update pre-commit - -on: - schedule: - - cron: "0 20 1-7 * */7" # First Sunday of the month @ 2000 UTC - # Reading this expression: At 20:00 on every day-of-month from 1 through 7 if - # it's on every 7th day-of-week, i.e. any one of the first seven days of the - # month as long as it is a Sunday. - workflow_dispatch: - -jobs: - pre-commit-update: - name: Update pre-commit - uses: beeware/.github/.github/workflows/pre-commit-update.yml@main - secrets: inherit - with: - pre-commit-source: pre-commit - create-changenote: false