Skip to content

Commit

Permalink
Try alternative recursive downloads.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jan 10, 2022
1 parent 402d9b9 commit 3ba3d65
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
@@ -18,11 +18,16 @@ jobs:
with:
# Checkout pull request HEAD commit instead of merge commit.
ref: ${{ github.event.pull_request.head.sha }}
# Get a coiuple of previous commits to trace back to the start of the PR.
# Get a couple of previous commits to trace back to the start of the PR.
fetch-depth: 10
- name: Fetch main
- name: Fetch commits in-between base and HEAD
# While the ancestor commit between HEAD and the branch base isn't in the local tree
# fetch 10 more parent commits of the branch base and branch head.
# Source: https://github.com/actions/checkout/issues/520#issuecomment-996873827
run: |
git fetch --deepen=10 origin main HEAD
while [ -z $( git merge-base ${{ github.base_ref }} HEAD ) ]; do
git fetch --deepen=10 origin ${{ github.base_ref }} HEAD;
done
- name: List previous commits
run: |
git log --decorate=full --oneline

0 comments on commit 3ba3d65

Please sign in to comment.