Skip to content

Commit b370161

Browse files
Update .github/workflows/_reusable-test-coverage.yaml
Co-authored-by: fernando-villalba <[email protected]>
1 parent e2b86aa commit b370161

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/_reusable-test-coverage.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ jobs:
4343
with:
4444
fetch-depth: 0 # Fetch all history for changed-modules detection
4545

46-
- name: Fetch main branch for comparison
47-
run: |
48-
git fetch origin main:refs/remotes/origin/main
46+
- name: Fetch base branch for comparison
47+
run: |
48+
TARGET_BRANCH="${{ github.base_ref || 'main' }}"
49+
echo "Fetching comparison target: $TARGET_BRANCH"
50+
git fetch origin ${TARGET_BRANCH}:refs/remotes/origin/${TARGET_BRANCH}
4951
5052
- name: Install Go
5153
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0

0 commit comments

Comments
 (0)