From 8d15fa3eff094e76c98578adf92ad6b3ac3b2105 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Tue, 7 May 2024 12:06:34 +0200 Subject: [PATCH] try ref_name, as head_ref doesn't work cross repository --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94da96f..d435299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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