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
This commit is contained in:
Paul O'Leary McCann 2021-07-10 15:38:20 +09:00
parent d4fecdfb82
commit b8cdbb4bb6
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ on:
jobs:
autoblack:
if: github.repository_owner = 'explosion'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2