From a55f33c3e46e59cbcc9f1ac838fd75ea8e012bb2 Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Wed, 2 Oct 2019 20:10: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/apidoc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml index 147c63a493..0507ed7c53 100644 --- a/.github/workflows/apidoc.yml +++ b/.github/workflows/apidoc.yml @@ -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