Skip to content

Commit 7ba56ff

Browse files
committed
fix: ensure correct commit is used in e2e action
- Updated checkout step to use PR head SHA when available - Prevented issues with incorrect commit being checked out in pull request workflows - Improved workflow reliability for both PR and direct push triggers
1 parent e6f95c7 commit 7ba56ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
TEST_BITBUCKET_SERVER_E2E_REPOSITORY: PAC/pac-e2e-tests
6363
steps:
6464
- uses: actions/checkout@v4
65+
with:
66+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
67+
6568
- uses: actions/setup-go@v5
6669
with:
6770
go-version-file: "go.mod"

0 commit comments

Comments
 (0)