Skip to content

Commit b80feee

Browse files
authored
Add debugging output to the DIY docs labeling steps in ready-for-doc-review (#54986)
1 parent d73477b commit b80feee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,25 @@ jobs:
7373
echo "No DIY docs issues found in the PR description."
7474
fi
7575
76+
# Debug step to confirm environment variables are set correctly
77+
- name: Debug environment variables
78+
run: |
79+
echo "Current environment variables:"
80+
echo "DIY_DOCS_LABEL: $DIY_DOCS_LABEL"
81+
echo "Repository: ${{ github.repository }}"
82+
7683
# If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR.
7784
- name: Add the DIY docs label if connected to a DIY docs issue
7885
if: ${{ env.DIY_DOCS_LABEL == 'true' }} && github.repository == 'github/docs-internal'
7986
env:
8087
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
8188
PR_URL: ${{ github.event.pull_request.html_url }}
8289
run: |
90+
# Debugging output
91+
echo "Condition check:"
92+
echo "DIY_DOCS_LABEL is: $DIY_DOCS_LABEL"
93+
echo "github.repository is: ${{ github.repository }}"
94+
echo "Adding the DIY docs label..."
8395
gh pr edit $PR_URL --add-label 'DIY docs'
8496
8597
- name: Run script

0 commit comments

Comments
 (0)