Skip to content

Commit 979064c

Browse files
authored
fix(ci): go_tooling CI job git checkout tip of PR (#173)
## Why this should be merged The release-branch CI job tests branch properties of the `git` DAG but GitHub's `actions/checkout` by default creates a speculative merge commit against which PR CI is run. Running against this hypothetical situation makes the tests fail. ## How this works [`actions/checkout` uses PR tip](https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit) ## How this was tested Future run against a release branch. --------- Signed-off-by: Quentin McGaw <[email protected]>
1 parent 7b930f1 commit 979064c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- uses: actions/checkout@v4
5050
with:
5151
fetch-depth: 0 # everything
52+
ref: ${{ github.event.pull_request.head.sha }}
5253
- name: Set up Go
5354
uses: actions/setup-go@v5
5455
with:

0 commit comments

Comments
 (0)