diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml new file mode 100644 index 000000000..c7eaa262c --- /dev/null +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -0,0 +1,15 @@ +name: Auto update pre-commit hooks every month +on: + schedule: + - cron: '0 0 1 * *' +jobs: + pre-commit: + name: Pre-commit + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - uses: mozilla-releng/actions/pre-commit-autoupdate@main + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31480c104..a5de02b69 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,9 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks --- ci: - autofix_commit_msg: "style: pre-commit.ci auto fixes [...]" autoupdate_commit_msg: "chore: pre-commit autoupdate" - autoupdate_schedule: monthly repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0