From 3e7070c5b57cf4f31b220d37d648e50894b7a956 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 30 Mar 2022 10:53:55 -0700 Subject: [PATCH] chore(ci): disable docs-preview on forks --- .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 1856fe34adee..7f89c9c70129 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