From a0a579834c6bf50c53e4ad74b9927ff7ec2f2683 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Wed, 5 Mar 2025 22:36:43 +0400 Subject: [PATCH] fix: check docs endpoint instead of status --- .github/workflows/check-api-for-breaking-changes.yml | 2 +- backend/src/server/routes/v1/slack-router.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check-api-for-breaking-changes.yml b/.github/workflows/check-api-for-breaking-changes.yml index 5d16a513c..a4bdeb29e 100644 --- a/.github/workflows/check-api-for-breaking-changes.yml +++ b/.github/workflows/check-api-for-breaking-changes.yml @@ -65,7 +65,7 @@ jobs: # Check if container is running if docker ps | grep infisical-api; then # Try to access the API endpoint - if curl -s -f http://localhost:4000/api/status > /dev/null 2>&1; then + if curl -s -f http://localhost:4000/api/docs/json > /dev/null 2>&1; then echo "API endpoint is responding. Container seems healthy." HEALTHY=1 break diff --git a/backend/src/server/routes/v1/slack-router.ts b/backend/src/server/routes/v1/slack-router.ts index 375c9df4f..94276a13c 100644 --- a/backend/src/server/routes/v1/slack-router.ts +++ b/backend/src/server/routes/v1/slack-router.ts @@ -19,8 +19,6 @@ const sanitizedSlackIntegrationSchema = WorkflowIntegrationsSchema.pick({ }) ); -// test change // // - export const registerSlackRouter = async (server: FastifyZodProvider) => { const appCfg = getConfig();