File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments