github action: only run in the main repo

This prevents the action being run in the fork, which
will generate errors due to missing token.
This commit is contained in:
Cheng XU 2019-10-02 20:10:06 +08:00
parent 6c2b9ffdc1
commit a55f33c3e4
No known key found for this signature in database
GPG Key ID: B19F15830AB4E690

View File

@ -4,6 +4,7 @@ on:
branches: master branches: master
jobs: jobs:
apidoc: apidoc:
if: github.repository == 'Homebrew/brew'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: Homebrew/actions/git-ssh@master - uses: Homebrew/actions/git-ssh@master