Skip to content

Commit bfd8064

Browse files
committed
Build: Workflow performs partial clone
Set checkout action options to perform a partial clone that omits all blob objects (files) and trees except for those that belong to the head commit. All commit objects and tags will be downloaded to allow `git describe` to work in the CI environment. Signed-off-by: Tony Germano <[email protected]>
1 parent 7c6f617 commit bfd8064

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
filter: 'tree:0'
19+
fetch-depth: 0
20+
fetch-tags: true
1721

1822
- name: Set up JDK
1923
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)