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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user