Skip to content

Commit c2f2e12

Browse files
committed
fix: Add debug output to module monitor workflow for troubleshooting
1 parent 3336395 commit c2f2e12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/module-monitor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424
persist-credentials: false
25+
ref: ${{ github.event.pull_request.head.sha }}
2526

2627
- name: Set up Python
2728
uses: actions/setup-python@v5
@@ -43,7 +44,12 @@ jobs:
4344
if [ "$GITHUB_EVENT_NAME" = "pull_request_target" ]; then
4445
BASE_REF="$GITHUB_BASE_SHA"
4546
HEAD_REF="$GITHUB_HEAD_SHA"
47+
echo "DEBUG: Comparing $BASE_REF to $HEAD_REF" >&2
48+
echo "DEBUG: Current HEAD is $(git rev-parse HEAD)" >&2
49+
echo "DEBUG: Available commits:" >&2
50+
git log --oneline -5 >&2
4651
DIFF_OUTPUT=$(git diff $BASE_REF $HEAD_REF -- zephyr/module.yml || echo "No changes found")
52+
echo "DEBUG: Diff result: $DIFF_OUTPUT" >&2
4753
else
4854
# For push events, get the previous commit that modified module.yml
4955
PREV_COMMIT=$(git log --oneline --follow -- zephyr/module.yml | head -2 | tail -1 | cut -d' ' -f1)

0 commit comments

Comments
 (0)