Skip to content

Commit 198889f

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 <tony@germano.name>
1 parent d38b337 commit 198889f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.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)