Skip to content

Commit b1eea68

Browse files
authored
Fix(?) the reusable ready-for-docs-review workflow (#54975)
1 parent 6815c96 commit b1eea68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ready-for-doc-review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
4646
# Check if the PR is connected to an issue that has the DIY docs label. The grep command parses through the PR description to find issue numbers that are linked in the PR description. The GitHub CLI command then checks if the issue exists in the docs-content repo, then checks if the linked docs-content issues have the DIY docs label. If the linked issues have the DIY docs label, the DIY_DOCS_LABEL environment variable is set to true.
4747
- name: Check if PR is connected to DIY docs issue
48+
if: github.repository == 'github/docs-internal'
4849
id: check-diy-docs
4950
env:
5051
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
@@ -74,7 +75,7 @@ jobs:
7475
7576
# If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR.
7677
- name: Add the DIY docs label if connected to a DIY docs issue
77-
if: ${{ env.DIY_DOCS_LABEL == 'true' }}
78+
if: ${{ env.DIY_DOCS_LABEL == 'true' }} && github.repository == 'github/docs-internal'
7879
env:
7980
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
8081
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)