Skip to content

Commit 6f03b82

Browse files
committed
Try ternary to fix PR checkout
1 parent 3c8a13c commit 6f03b82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
steps:
5454
- name: Checkout
5555
uses: actions/checkout@v3
56+
with:
57+
ref: ${{ github.event.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
5658

5759
- name: Echo Go Cache Paths
5860
id: go-cache-paths

0 commit comments

Comments
 (0)