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
+1
View File
@@ -4,6 +4,7 @@ on:
branches: master
jobs:
apidoc:
if: github.repository == 'Homebrew/brew'
runs-on: ubuntu-latest
steps:
- uses: Homebrew/actions/git-ssh@master