Skip to content

Commit d5367a6

Browse files
ci: Checkout default branch in workflow
Improves pipeline performance by fetching only the default branch instead of the full repository history. Ensures consistency by always working from the canonical default branch.
1 parent 6556934 commit d5367a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci-cd-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- name: Checkout code
111111
uses: actions/checkout@v4
112112
with:
113-
fetch-depth: 0
113+
ref: ${{ github.event.repository.default_branch }}
114114
token: ${{ github.token }}
115115

116116
- name: Configure Git

0 commit comments

Comments
 (0)