Skip to content

Commit 6f3b34e

Browse files
InfoTech.io Botclaude
andcommitted
debug: Add diagnostic step to Notify Hub workflow
Adding debug information to understand PAT_TOKEN issues: - Check PAT_TOKEN presence and format - Validate environment variables - Help diagnose repository dispatch failures πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 70c6324 commit 6f3b34e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

β€Ž.github/workflows/notify-hub.ymlβ€Ž

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15+
- name: Debug PAT_TOKEN and environment
16+
run: |
17+
echo "πŸ” Debugging PAT_TOKEN and workflow environment"
18+
echo "PAT_TOKEN length: ${#PAT_TOKEN}"
19+
echo "PAT_TOKEN prefix: ${PAT_TOKEN:0:4}..."
20+
echo "Target repository: info-tech-io/infotecha"
21+
echo "Event type: module-updated"
22+
echo "GitHub event: ${{ github.event_name }}"
23+
echo "GitHub SHA: ${{ github.sha }}"
24+
if [ -z "$PAT_TOKEN" ]; then
25+
echo "❌ PAT_TOKEN is empty"
26+
exit 1
27+
fi
28+
echo "βœ… PAT_TOKEN is present"
29+
env:
30+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
31+
1532
- name: Notify infotecha hub
1633
uses: peter-evans/repository-dispatch@v3
1734
with:

0 commit comments

Comments
Β (0)