From ecd943c2bd2b9746bc6229fc9d2145135d4ae6ae Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Wed, 2 Oct 2019 20:19:06 +0800 Subject: [PATCH] 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. --- .github/workflows/generate_formulae.brew.sh_data.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/generate_formulae.brew.sh_data.yml b/.github/workflows/generate_formulae.brew.sh_data.yml index 5ea160c3fd..663c4a5bd2 100644 --- a/.github/workflows/generate_formulae.brew.sh_data.yml +++ b/.github/workflows/generate_formulae.brew.sh_data.yml @@ -7,6 +7,7 @@ on: jobs: generate: + if: github.repository == 'Homebrew/homebrew-core' runs-on: macos-latest steps: - uses: actions/checkout@master