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:19:06 +08:00 committed by Markus Reiter
parent 28d93d3439
commit ecd943c2bd

View file

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