Skip to content

Commit ee29617

Browse files
committed
add debugging
1 parent b3a8d0c commit ee29617

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/trademark-cla-approval.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: write-all
1717
jobs:
1818
process-cla-approval:
1919
runs-on: ubuntu-latest
20-
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_target' && github.event.label.name == 'cla-signed' && github.actor != 'github-actions[bot]') || github.event_name == 'issue_comment'
20+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'issue_comment' || (github.event_name == 'pull_request_target' && github.event.label.name == 'cla-signed' && github.actor != 'github-actions[bot]')
2121

2222
steps:
2323

@@ -250,11 +250,20 @@ jobs:
250250
console.log(`CLA approved for ${prAuthor} by ${approvedBy} via ${method}`)
251251
252252
- name: Record manual CLA approval
253-
if: steps.process-cla-approval.outputs.pr_number
253+
if: always() && steps.process-cla-approval.outputs.pr_number != ''
254254
run: |
255+
echo "=== DEBUG: Record manual CLA approval step starting ==="
256+
echo "Available outputs:"
257+
echo " pr_number: '${{ steps.process-cla-approval.outputs.pr_number }}'"
258+
echo " pr_author: '${{ steps.process-cla-approval.outputs.pr_author }}'"
259+
echo " approved_by: '${{ steps.process-cla-approval.outputs.approved_by }}'"
260+
255261
# Ensure signatures file exists
256262
if [ ! -f "cla-signatures.json" ]; then
257263
echo '{"signatures": []}' > cla-signatures.json
264+
echo "Created new cla-signatures.json file"
265+
else
266+
echo "cla-signatures.json already exists"
258267
fi
259268
260269
# Extract approval details from previous step outputs

0 commit comments

Comments
 (0)