From 31c1865b91e37fda06fb5594ec81c0baa986a97e Mon Sep 17 00:00:00 2001 From: Akuli Date: Fri, 26 Nov 2021 17:37:55 +0200 Subject: [PATCH] Don't trigger mypy_primer from commits created by pre-commit.ci (#6385) If pre-commit makes a change immediately after a PR has been made, it's important that the stubtest/mypy/pytype/pyright checks are run again, as line numbers might have changed. However, there's no reason to start a new run of mypy_primer, since pre-commit will make no substantive changes to a PR, only cosmetic changes, and that shouldn't affect the diff from mypy_primer. --- .github/workflows/mypy_primer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mypy_primer.yml b/.github/workflows/mypy_primer.yml index a987c24a0..4dc135778 100644 --- a/.github/workflows/mypy_primer.yml +++ b/.github/workflows/mypy_primer.yml @@ -11,6 +11,7 @@ on: jobs: mypy_primer: name: Run + if: github.actor != 'pre-commit-ci[bot]' runs-on: ubuntu-latest permissions: contents: read