Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fetch all commits for pr branch plus head commit of base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed May 2, 2024
1 parent 9fc37db commit 74812f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/test/using_bundler/Gemfile
steps:
- uses: actions/checkout@v4
- name: Fetch all commits for PR branch plus head commit of base branch
run: |
set -x
# fix for "fatal: error in object: unshallow"
git repack -d
# fetch all commits of the PR branch
git fetch --shallow-exclude "${{ github.base_ref }}" origin "${{ github.head_ref }}"
# fetch head commit of base branch
git fetch --deepen 1 origin "${{ github.head_ref }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
Expand Down

0 comments on commit 74812f3

Please sign in to comment.