We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b86aa commit b370161Copy full SHA for b370161
.github/workflows/_reusable-test-coverage.yaml
@@ -43,9 +43,11 @@ jobs:
43
with:
44
fetch-depth: 0 # Fetch all history for changed-modules detection
45
46
- - name: Fetch main branch for comparison
47
- run: |
48
- git fetch origin main:refs/remotes/origin/main
+ - name: Fetch base branch for comparison
+ run: |
+ TARGET_BRANCH="${{ github.base_ref || 'main' }}"
49
+ echo "Fetching comparison target: $TARGET_BRANCH"
50
+ git fetch origin ${TARGET_BRANCH}:refs/remotes/origin/${TARGET_BRANCH}
51
52
- name: Install Go
53
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
0 commit comments