Skip to content

Commit 4dfdc79

Browse files
committed
Allow finding external contributor's branch
1 parent 6bced1c commit 4dfdc79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/commit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
fetch-depth: 0
1818
ref: ${{ github.event.pull_request.base.ref }}
1919

20-
- name: Checkout the current pull request branch
21-
run: git checkout ${{ github.event.pull_request.head.ref }}
20+
- name: Checkout PR branch
21+
run: |
22+
git fetch --no-tags origin +refs/pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}
23+
git checkout ${{ github.event.pull_request.head.ref }}
2224
2325
- name: Install dependencies
2426
run: npm ci

0 commit comments

Comments
 (0)