From 20b435a7c1c66dd5902660e117087de243fdb42e Mon Sep 17 00:00:00 2001 From: Jimisola Laursen Date: Sat, 7 Mar 2026 21:15:36 +0100 Subject: [PATCH] fix(ci): add fetch-depth to checkout for Antora local source Antora requires a git repository for local content sources (url: .). The default shallow checkout lacks the git history needed to resolve `branches: HEAD`, causing the build to fail with "Local content source must be a git repository". Signed-off-by: jimisola --- .github/workflows/publish_gh_pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish_gh_pages.yml b/.github/workflows/publish_gh_pages.yml index 205efa4..9460af3 100644 --- a/.github/workflows/publish_gh_pages.yml +++ b/.github/workflows/publish_gh_pages.yml @@ -24,6 +24,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Configure Pages uses: actions/configure-pages@v5 - name: Install Node.js