Skip to content

fix(ci): add fetch-depth to checkout for Antora local source#17

Merged
jimisola merged 1 commit intomainfrom
fix/antora-checkout-depth
Mar 7, 2026
Merged

fix(ci): add fetch-depth to checkout for Antora local source#17
jimisola merged 1 commit intomainfrom
fix/antora-checkout-depth

Conversation

@jimisola
Copy link
Member

@jimisola jimisola commented Mar 7, 2026

Summary

  • Adds fetch-depth: 0 to the actions/checkout step in the publish workflow
  • Fixes Antora build failure: Local content source must be a git repository
  • The default shallow checkout lacks git history needed for Antora to resolve branches: HEAD on local content sources (url: .)

Test plan

  • Merge and verify the publish workflow succeeds on main

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 <jimisola@jimisola.com>
@jimisola jimisola self-assigned this Mar 7, 2026
@jimisola jimisola merged commit 1f05cba into main Mar 7, 2026
4 checks passed
@jimisola jimisola deleted the fix/antora-checkout-depth branch March 7, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant