fix(ci): fetch full history so 'git describe --tags' works
Validate / build-test (macos-latest) (push) Failing after 1s
Validate / build-test (ubuntu-latest) (push) Successful in 17s
Validate / build-test (windows-latest) (push) Failing after 17s
Validate / reports (push) Successful in 49s

The landing page showed 'version (no tag)' because actions/checkout@v4
defaults to a shallow clone (fetch-depth: 1) and pulls no tags. The
landing-page generator's 'git describe --tags --abbrev=0' then failed
and fell back to the placeholder.

Add fetch-depth: 0 to every checkout step in validate.yml + release.yml
so the runner sees all tags (current head: v0.5.0 + 6 commits).
This commit is contained in:
Stefan Lohmaier
2026-05-13 00:33:04 -07:00
parent 2167c100e8
commit 0b58185af7
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
+4
View File
@@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
@@ -58,6 +60,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |