From e2de7a349858c93fe71dead2224bff59d917514f Mon Sep 17 00:00:00 2001 From: Abdellah Hariti Date: Wed, 24 Jul 2024 12:36:59 +0100 Subject: [PATCH] fix commands --- .github/workflows/lint-404s.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-404s.yml b/.github/workflows/lint-404s.yml index 78ed13f85650c..64200b0aab2d1 100644 --- a/.github/workflows/lint-404s.yml +++ b/.github/workflows/lint-404s.yml @@ -46,9 +46,15 @@ jobs: - run: yarn build:developer-docs if: steps.filter.outputs.dev-docs == 'true' - # bun seems to be the most straightforward way to run a TypeScript script - # without introducing another dependency like ts-node or tsx for everyone else + - name: Start Http Server + run: yarn start & + if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true' + + - name: Lint 404s + run: bun ./scripts/lint-404s/main.ts + if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true' - # build docs index - - run: yarn start & bun ./scripts/lint-404s/main.ts + - name: Kill Http Server + run: kill $(lsof -t -i:3000) || true if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.dev-docs == 'true' + continue-on-error: true