diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61280dd..472d592 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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