Skip to content

Commit

Permalink
try ref_name, as head_ref doesn't work cross repository
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed May 7, 2024
1 parent 3942e44 commit 8d15fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Fetch all commits for PR branch plus head commit of base branch
run: |
# fetch all commits of the PR branch
git fetch --shallow-exclude "${{ github.base_ref }}" origin "${{ github.head_ref }}"
git fetch --shallow-exclude "${{ github.base_ref }}" origin "${{ github.ref_name }}"
# fix for "fatal: error in object: unshallow"
git repack -d
# fetch head commit of base branch
git fetch --deepen 1 origin "${{ github.head_ref }}"
git fetch --deepen 1 origin "${{ github.ref_name }}"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
Expand Down

0 comments on commit 8d15fa3

Please sign in to comment.