Skip to content

Commit 0aa2ec6

Browse files
authored
fix: in pull requests checkout the pull request branch
1 parent df66863 commit 0aa2ec6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.lib.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
with:
1414
submodules: recursive
1515

16+
- name: Checkout pull request branch
17+
if: ${{ github.event_name == 'pull_request' }}
18+
run: |
19+
git fetch origin ${{ github.event.pull_request.head.ref }}:$GITHUB_HEAD_REF
20+
git checkout $GITHUB_HEAD_REF
21+
1622
- name: Set up Go
1723
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
1824
with:

0 commit comments

Comments
 (0)