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:
73
73
echo "No DIY docs issues found in the PR description."
74
74
fi
75
75
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
+
76
83
# If the PR description contains a link to a DIY docs issue, add the DIY docs label to the PR.
77
84
- name : Add the DIY docs label if connected to a DIY docs issue
78
85
if : ${{ env.DIY_DOCS_LABEL == 'true' }} && github.repository == 'github/docs-internal'
79
86
env :
80
87
GITHUB_TOKEN : ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
81
88
PR_URL : ${{ github.event.pull_request.html_url }}
82
89
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..."
83
95
gh pr edit $PR_URL --add-label 'DIY docs'
84
96
85
97
- name : Run script
You can’t perform that action at this time.
0 commit comments