1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Add debugging output to the DIY docs labeling steps in ready-for-doc-review (#54986)

This commit is contained in:
Joe Clark
2025-03-24 15:05:52 -07:00
committed by GitHub
parent d73477b8d6
commit b80feee695

View File

@@ -73,6 +73,13 @@ jobs:
echo "No DIY docs issues found in the PR description." echo "No DIY docs issues found in the PR description."
fi fi
# Debug step to confirm environment variables are set correctly
- name: Debug environment variables
run: |
echo "Current environment variables:"
echo "DIY_DOCS_LABEL: $DIY_DOCS_LABEL"
echo "Repository: ${{ github.repository }}"
# If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR. # If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR.
- name: Add the DIY docs label if connected to a DIY docs issue - name: Add the DIY docs label if connected to a DIY docs issue
if: ${{ env.DIY_DOCS_LABEL == 'true' }} && github.repository == 'github/docs-internal' if: ${{ env.DIY_DOCS_LABEL == 'true' }} && github.repository == 'github/docs-internal'
@@ -80,6 +87,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
PR_URL: ${{ github.event.pull_request.html_url }} PR_URL: ${{ github.event.pull_request.html_url }}
run: | run: |
# Debugging output
echo "Condition check:"
echo "DIY_DOCS_LABEL is: $DIY_DOCS_LABEL"
echo "github.repository is: ${{ github.repository }}"
echo "Adding the DIY docs label..."
gh pr edit $PR_URL --add-label 'DIY docs' gh pr edit $PR_URL --add-label 'DIY docs'
- name: Run script - name: Run script