twenty/.github
Félix Malfait c9ca4dfa14
fix: run AI catalog sync as standalone script to avoid DB dependency (#18853)
## Summary
- The `ci-ai-catalog-sync` cron workflow was failing because the
`ai:sync-models-dev` NestJS command bootstraps the full app, which tries
to connect to PostgreSQL — unavailable in CI.
- Converted the sync logic to a standalone `ts-node` script
(`scripts/ai-sync-models-dev.ts`) that runs without NestJS, eliminating
the database dependency.
- Removed the `Build twenty-server` step from the workflow since it's no
longer needed, making the job faster.

## Test plan
- [x] Verified the standalone script runs successfully locally via `npx
nx run twenty-server:ts-node-no-deps-transpile-only --
./scripts/ai-sync-models-dev.ts`
- [x] Verified `--dry-run` flag works correctly
- [x] Verified the output `ai-providers.json` is correctly written with
valid JSON (135 models across 5 providers)
- [x] Verified the script passes linting with zero errors
- [ ] CI should pass without requiring a database service

Fixes:
https://github.com/twentyhq/twenty/actions/runs/23424202182/job/68135439740

Made with [Cursor](https://cursor.com)
2026-03-23 13:07:53 +01:00
..
actions Re-enable disabled lint rules and right-size CI runners (#18461) 2026-03-06 13:33:02 +00:00
ISSUE_TEMPLATE Prepare field option dropdown for RecordField usage (#13935) 2025-08-18 10:34:12 +02:00
vale-styles Fix Vale CI and change vision (#4724) 2024-04-01 11:39:04 +02:00
workflows fix: run AI catalog sync as standalone script to avoid DB dependency (#18853) 2026-03-23 13:07:53 +01:00
CLA.md Remove CLA Assistant (#2479) 2023-11-13 16:09:59 +01:00
CODE_OF_CONDUCT.md add contibuting_example.md (#6998) 2024-09-12 12:31:34 +02:00
CONTRIBUTING.md Fix markdown link formatting in CONTRIBUTING.md (#16176) 2025-11-28 13:53:45 +01:00
crowdin-app.yml fix: add base_path to Crowdin configs for correct path resolution (#17196) 2026-01-16 16:54:40 +01:00
crowdin-docs.yml fix: add base_path to Crowdin configs for correct path resolution (#17196) 2026-01-16 16:54:40 +01:00
dependabot.yml Exclude community apps from Dependabot scanning (#17345) 2026-01-22 14:47:21 +01:00
release-drafter.yml feat(ci): add release drafter (#4970) 2024-04-15 20:09:06 +02:00
SECURITY.md changes as per vale warnings (#2353) 2023-11-07 11:39:29 +01:00
vale.ini chore: cleanup repository root structure (#17147) 2026-01-14 12:56:30 +00:00
verdaccio-config.yaml Create twenty app e2e test ci (#18497) 2026-03-11 16:30:28 +01:00