Skip to content

Commit 58f3267

Browse files
committed
ci: fetch base from correct remote
1 parent 8998fa4 commit 58f3267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@ jobs:
5858
run: |
5959
BASE_REF="${{ github.event.pull_request.base.sha }}"
6060
HEAD_REF="${{ github.event.pull_request.head.sha }}"
61+
BASE_REMOTE="${{github.event.pull_request.base.repo.clone_url}}"
6162
HEAD_REMOTE="${{github.event.pull_request.head.repo.clone_url}}"
6263
6364
echo "BASE_REF=$BASE_REF" >> $GITHUB_ENV
6465
echo "HEAD_REF=$HEAD_REF" >> $GITHUB_ENV
66+
echo "BASE_REMOTE=$BASE_REMOTE" >> $GITHUB_ENV
6567
echo "HEAD_REMOTE=$HEAD_REMOTE" >> $GITHUB_ENV
6668
6769
- name: Fetch Base Branch
6870
run: |
6971
# Fetch all history for the base branch and PR head
70-
git fetch origin ${BASE_REF}
72+
git fetch ${BASE_REMOTE} ${BASE_REF}
7173
git fetch ${HEAD_REMOTE} ${HEAD_REF}
7274
7375
- name: Detect Added Submodules

0 commit comments

Comments
 (0)