Skip to content

Commit eb68667

Browse files
authored
Fix CI bug: check out the PR branch! (#138)
For pull_request_target, we must explicitly checkout the PR's branch. Without this, checkout defaults to the base branch (main), not the PR.
1 parent 5519657 commit eb68667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
exit 1
6161
6262
- uses: actions/checkout@v4
63+
with:
64+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
6365

6466
- name: Set up Python
6567
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)