@@ -18,12 +18,45 @@ jobs:
1818
1919 # On PR_TARGET → the PR head *commit* (reproducible).
2020 # On push → the pushed commit that triggered the workflow.
21- ref : ${{ github.event.pull_request.head.sha || github.sha }}
21+ ref : ${{ github.event.pull_request.head.ref || github.sha }}
2222
23- fetch-depth : 0
2423 # Don’t keep credentials when running untrusted PR code under PR_TARGET.
2524 persist-credentials : ${{ github.event_name != 'pull_request_target' }}
2625
26+ - name : Debug checkout for umago/lightspeed-stack setup-metrics branch
27+ run : |
28+ echo "=== GitHub Event Information ==="
29+ echo "Event name: ${{ github.event_name }}"
30+ echo "Base repo: ${{ github.repository }}"
31+ echo "Base SHA: ${{ github.sha }}"
32+ echo ""
33+ echo "=== PR Information ==="
34+ echo "PR head repo: '${{ github.event.pull_request.head.repo.full_name }}'"
35+ echo "PR head ref: '${{ github.event.pull_request.head.ref }}'"
36+ echo "PR head SHA: '${{ github.event.pull_request.head.sha }}'"
37+ echo "PR number: ${{ github.event.pull_request.number }}"
38+ echo ""
39+ echo "=== Resolved Checkout Values ==="
40+ echo "Repository used: ${{ github.event.pull_request.head.repo.full_name || github.repository }}"
41+ echo "Ref used: ${{ github.event.pull_request.head.ref || github.sha }}"
42+ echo ""
43+ echo "=== Expected for umago/lightspeed-stack:setup-metrics ==="
44+ echo "Should be repo: umago/lightspeed-stack"
45+ echo "Should be ref: setup-metrics"
46+
47+ - name : Verify actual git checkout result
48+ run : |
49+ echo "=== Git Status After Checkout ==="
50+ echo "Remote URLs:"
51+ git remote -v
52+ echo ""
53+ echo "Current branch: $(git branch --show-current 2>/dev/null || echo 'detached HEAD')"
54+ echo "Current commit: $(git rev-parse HEAD)"
55+ echo "Current commit message: $(git log -1 --oneline)"
56+ echo ""
57+ echo "=== Recent commits (should show setup-metrics commits) ==="
58+ git log --oneline -5
59+
27602861 env :
2962 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
0 commit comments