chore(ci): disable docs-preview on forks (#5046)
This commit is contained in:
parent
cd6d740dc3
commit
7f884203f0
3
.github/workflows/docs-preview.yaml
vendored
3
.github/workflows/docs-preview.yaml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user