Skip to content

Commit 01a2aa4

Browse files
committed
Set fetch-depth to 0 to check out all branches and tags
The default is fetch depth 1, which checks out just the given commit. Setting this to 0 lets us build against any branch, without having to have tagged it first. Without this, vanagon throws its hands up because it can't get any version from 'git describe'.
1 parent ef7364a commit 01a2aa4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build_vanagon.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ jobs:
165165
uses: actions/checkout@v5
166166
with:
167167
ref: ${{ inputs.ref }}
168+
fetch-depth: 0 # So we fetch all history and tags and can build non-tagged versions
168169

169170
- name: Install Cygwin and bootstrap dependencies (Windows only)
170171
if: ${{ startsWith(matrix.platform, 'windows') }}

0 commit comments

Comments
 (0)