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.
master
Cheng XU 2019-10-02 20:19:06 +08:00 committed by Markus Reiter
parent 28d93d3439
commit ecd943c2bd
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
jobs:
generate:
if: github.repository == 'Homebrew/homebrew-core'
runs-on: macos-latest
steps:
- uses: actions/checkout@master