Skip to content

Commit 4588309

Browse files
authored
Fix branch fetching in linux job v2 (#7663)
To allow merge-base to work, all required branches need to be fetched. With the current default of single-branch, workflows can break, see, e.g., https://github.com/pytorch/pytorch/actions/runs/21164529985/job/60871122753.
1 parent 872fcb1 commit 4588309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linux_job_v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242
type: number
4343
single-branch:
4444
description: 'Whether to fetch only a single branch, defaults to true'
45-
default: true
45+
default: false
4646
type: boolean
4747
checkout-mode:
4848
description: 'Mode of checkout; one of "normal", "blobless", "treeless".'

0 commit comments

Comments
 (0)