Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 20, 2024
1 parent 16e7284 commit e1178b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,12 @@ jobs:
- run: python -m pip install --upgrade pip && pip install nox
- run: nox -s coverage
- name: Set PR base on codecov
if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' }}
run: |
# fetch the merge commit between the PR base and head
BASE_REF=${{ github.event.pull_request.base.ref }}
HEAD_REF=${{ github.sha }}
git fetch --progress --depth=1 origin "+refs/heads/$BASE_REF:refs/heads/$BASE_REF"
while [ -z "$(git merge-base "$BASE_REF" "$HEAD_REF")" ]; do
git fetch -q --deepen="10" origin "$BASE_REF" "$HEAD_REF";
Expand Down

0 comments on commit e1178b5

Please sign in to comment.