Skip to content

Commit 3645b0a

Browse files
committed
feat: use shallow clone in prepare and emit-build-metadata jobs
Neither job needs git history: prepare only reads config files and emit-build-metadata only runs git rev-parse HEAD (always present in shallow clones). Dropping fetch-depth: 0 switches to the default depth-1 shallow clone, saving ~1 min of checkout time. Ref: MCWP-574
1 parent 4863651 commit 3645b0a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ jobs:
119119
steps:
120120
- uses: actions/checkout@v4
121121
with:
122-
fetch-depth: 0
123122
ref: ${{ !inputs.skip_version_bump && needs.update-build-version.outputs.commit-hash || (inputs.source_branch || github.ref_name) }}
124123
- name: Setup Node.js
125124
uses: actions/setup-node@v4
@@ -519,7 +518,6 @@ jobs:
519518
steps:
520519
- uses: actions/checkout@v4
521520
with:
522-
fetch-depth: 0
523521
ref: ${{ needs.prepare.outputs.checkout_ref_for_setup }}
524522

525523
- name: Setup Node.js

0 commit comments

Comments
 (0)