ci: wiki-search should skip optional backend sync when secrets are unset #38
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/wiki#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The scheduled/push
wiki-searchworkflow onmaincurrently fails wheneverWIKI_SEARCH_SYNC_URL/WIKI_SEARCH_SYNC_TOKENare unset, even though search-index generation itself succeeds.Evidence
main:wiki-searchrun23039503869Sync search index via website backendafter the build finishes:Wrote 4590 records to .../build/search-index.jsonMEILISEARCH_URL/KEY not set. Skipping remote sync.test -n "$WIKI_SEARCH_SYNC_URL"test -n "$WIKI_SEARCH_SYNC_TOKEN".github/workflows/search-index.ymlImpact
maineven when content generation is healthy.Acceptance criteria
wiki-searchstill buildsbuild/search-index.json,build/search-indices.json, and the generated manifests on every run.WIKI_SEARCH_SYNC_URLand/orWIKI_SEARCH_SYNC_TOKENare not configured.Notes
Re-checked this against
maintoday and it is already fixed.Evidence on current
main(106ac9d):.github/workflows/search-index.ymlnow gates the backend sync step withif: ${{ secrets.WIKI_SEARCH_SYNC_URL != && secrets.WIKI_SEARCH_SYNC_TOKEN != }}\n- The workflow logs a dedicated skip message when either secret is unset\n- Artifact upload now runs underif: ${{ always() }}so generated search outputs are still preserved\n- PR #33 merged on 2026-03-31 and implemented the exact acceptance criteria captured here\n\nClosing this as resolved onmain.Resolved on
mainby merged PR #33; current workflow already skips optional backend sync when secrets are unset and still uploads artifacts.