|
23 | 23 | # Don’t keep credentials when running untrusted PR code under PR_TARGET. |
24 | 24 | persist-credentials: ${{ github.event_name != 'pull_request_target' }} |
25 | 25 |
|
| 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 | +
|
26 | 60 | - uses: 1arp/create-a-file-action@0.4.5 |
27 | 61 | env: |
28 | 62 | OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
|
0 commit comments