Skip to content

Commit b45837a

Browse files
authored
Merge pull request #2665 from ascerra/use-pr-for-testing
Checkout PR changes for testing instead of main
2 parents 7bc924d + 525d8dc commit b45837a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/checks-sealights.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ jobs:
5151
echo "Invalid context for this workflow run. Exiting."
5252
exit 1
5353
54-
- name: Checkout repository
54+
- name: Checkout PR Head
5555
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656
with:
57-
# Needed in hack/derive-version.sh
58-
fetch-depth: 0
57+
ref: ${{ github.event.pull_request.head.sha }}
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Show git sha and commit subject
61+
run: git log --oneline -n1
62+
5963

6064
- name: Restore Cache
6165
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2

0 commit comments

Comments
 (0)