Skip to content

Commit 423272b

Browse files
authored
Merge pull request #331 from radofuchs/incorrect_e2e_commit
LCORE-306: Incorrect e2e commit
2 parents 0b0a530 + 2e09d98 commit 423272b

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
2760
- uses: 1arp/[email protected]
2861
env:
2962
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)