Skip to content

Commit 7f88420

Browse files
authored
chore(ci): disable docs-preview on forks (#5046)
1 parent cd6d740 commit 7f88420

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docs-preview.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030

3131
- name: Comment Credentials
3232
uses: marocchino/sticky-pull-request-comment@v2
33+
# Only run if PR comes from base repo
34+
# Reason: forks cannot access secrets and this will always fail
35+
if: github.event.pull_request.head.repo.full_name == github.repository
3336
with:
3437
GITHUB_TOKEN: ${{ github.token }}
3538
header: codercom-preview-docs

0 commit comments

Comments
 (0)