Skip to content

Commit 8703356

Browse files
committed
Fix the commit being checked out for tests 🤦
1 parent ccd8f6b commit 8703356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_test_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727
with:
28-
ref: ${{ github.event.pull_request.head.sha }}
28+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2929
- name: Harden Runner
3030
uses: step-security/harden-runner@v2
3131
with:
@@ -64,7 +64,7 @@ jobs:
6464
6565
- uses: actions/checkout@v4
6666
with:
67-
ref: ${{ github.event.pull_request.head.sha }}
67+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
6868

6969
- name: Set up Go
7070
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)