From 0b58185af7313c55e34c362c230db0bcbfdbc7bb Mon Sep 17 00:00:00 2001 From: Stefan Lohmaier Date: Wed, 13 May 2026 00:33:04 -0700 Subject: [PATCH] fix(ci): fetch full history so 'git describe --tags' works 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). --- .gitea/workflows/release.yml | 2 ++ .gitea/workflows/validate.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d22a7c2..7fd1a21 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Install dependencies run: | diff --git a/.gitea/workflows/validate.yml b/.gitea/workflows/validate.yml index a3400ac..892a19c 100644 --- a/.gitea/workflows/validate.yml +++ b/.gitea/workflows/validate.yml @@ -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: |