From 7f884203f0674bac5894c8b8dc33874662b505be Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 30 Mar 2022 13:45:35 -0700 Subject: [PATCH] chore(ci): disable docs-preview on forks (#5046) --- .github/workflows/docs-preview.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docs-preview.yaml b/.github/workflows/docs-preview.yaml index 1856fe34a..7f89c9c70 100644 --- a/.github/workflows/docs-preview.yaml +++ b/.github/workflows/docs-preview.yaml @@ -30,6 +30,9 @@ jobs: - name: Comment Credentials uses: marocchino/sticky-pull-request-comment@v2 + # Only run if PR comes from base repo + # Reason: forks cannot access secrets and this will always fail + if: github.event.pull_request.head.repo.full_name == github.repository with: GITHUB_TOKEN: ${{ github.token }} header: codercom-preview-docs