From 338348725a079a09f98bc6a0e27916c4d01933b0 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Tue, 5 May 2026 16:58:05 -0400 Subject: [PATCH] ci: use shared pre-commit hook --- .github/workflows/pre-commit-autoupdate.yml | 15 --------------- .github/workflows/pre-commit.yml | 12 ------------ .taskcluster.yml | 2 ++ 3 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/pre-commit-autoupdate.yml delete mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml deleted file mode 100644 index c7eaa262c..000000000 --- a/.github/workflows/pre-commit-autoupdate.yml +++ /dev/null @@ -1,15 +0,0 @@ -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/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 4ec493f2c..000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: "Pre-commit" -on: - pull_request: - push: - branches: [main] -jobs: - pre-commit: - name: Run pre-commit - runs-on: ubuntu-latest - steps: - - uses: mozilla-releng/actions/pre-commit@main diff --git a/.taskcluster.yml b/.taskcluster.yml index dbc15a8e6..67063664a 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -9,6 +9,8 @@ reporting: checks-v1 autoCancelPreviousChecks: true policy: pullRequests: public_restricted +hooks: + - name: lint/pre-commit-v1 tasks: # NOTE: support for actions in ci-admin requires that the `tasks` property be an array *before* JSON-e rendering # takes place.