Skip to content

Commit 2e09d98

Browse files
committed
added head.ref instead of head.sha, added debug messages
1 parent e7971d7 commit 2e09d98

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/e2e_tests.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,40 @@ jobs:
2323
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
2424
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
2525

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+
2660
- uses: 1arp/create-a-file-action@0.4.5
2761
env:
2862
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)