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.