fix(ci): pull in the upstream base repo branch for PRs
This commit is contained in:
@@ -30,6 +30,13 @@ jobs:
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch base branch for comparison
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
|
||||
git fetch upstream ${{ github.event.pull_request.base.ref }}
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
Reference in New Issue
Block a user