From b8cdbb4bb6a2a136ba7a72cb4b6bc3749fea27a8 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Sat, 10 Jul 2021 15:38:20 +0900 Subject: [PATCH] Make the autoblack job not run on forks The autoblack job is an occasional cleanup job. If it runs on forks and those PRs are accepted the git history will be weird and that doesn't help anyone. The way to make the job not run on forks is a little non-obvious but based on this thread. https://github.com/prisma/prisma/issues/3539 --- .github/workflows/autoblack.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 5a2fd6210..9f4f82ae5 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -9,6 +9,7 @@ on: jobs: autoblack: + if: github.repository_owner = 'explosion' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2