Skip to content

Commit 92d0e81

Browse files
MishaKavclaude
andauthored
Optimize cm repo clone by using shallow clone with depth=1 (#436)
Add fetch-depth: 1 to cm repo and cm org checkout steps to only fetch the last commit without history, improving clone performance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent ce6434b commit 92d0e81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ runs:
147147
repository: '${{ fromJSON(fromJSON(inputs.client_payload)).owner }}/${{ fromJSON(fromJSON(inputs.client_payload)).cmRepo }}'
148148
ref: ${{ fromJSON(fromJSON(inputs.client_payload)).cmRepoRef }}
149149
path: gitstream/cm/
150+
fetch-depth: 1
150151

151152
- name: Checkout cm org
152153
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -155,6 +156,7 @@ runs:
155156
repository: 'cm/cm'
156157
ref: ${{ fromJSON(fromJSON(inputs.client_payload)).cmOrgRef }}
157158
path: gitstream/cm/
159+
fetch-depth: 1
158160

159161
- name: Volume folder
160162
shell: bash

0 commit comments

Comments
 (0)