From 444e48c210637dd91ea276bb636a846c35627ab3 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 9 Jul 2020 14:48:51 -0700 Subject: [PATCH] Restrict publishing job to the main repository. (#104) See the [documentation](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif) for details on the syntax, and the [context docs](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context) for the API used. --- .github/workflows/publish-docs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 1846841a4f49..0d5180ace57f 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -6,6 +6,7 @@ on: jobs: build: + if: github.repository == 'carbon-language/carbon-lang' runs-on: [ubuntu-latest] steps: - uses: actions/checkout@v2