Fix workflow database initialization and error handling

- Initialize database inside indexer process to ensure connection exists
- Configure GitHub token in same process as indexer
- Make indexer throw errors instead of returning early for CI failure detection
- Remove duplicate token configuration step
- Pass GITHUB_TOKEN as environment variable to build step

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
valknarness
2025-10-26 14:05:21 +01:00
parent 6518cd8e76
commit 509795ab82
2 changed files with 19 additions and 14 deletions

View File

@@ -137,7 +137,7 @@ async function buildIndex(force = false, mode = null) {
} catch (error) {
spinner.fail(chalk.red('✗ Failed to fetch main index'));
console.error(chalk.red(error.message));
return;
throw error; // Throw instead of return so CI fails properly
}
// Parse links from main index