Skip to content

The open alternative to Salesforce, designed for AI.

Add status check to ci-knip (#26810)

Paul Rastoind98242115482
diff --git a/.github/workflows/ci-knip.yaml b/.github/workflows/ci-knip.yaml
index 855146d7575..b298d586961 100644
--- a/.github/workflows/ci-knip.yaml
+++ b/.github/workflows/ci-knip.yaml
@@ -37,3 +37,12 @@ jobs:
uses: ./.github/actions/yarn-install
- name: Run knip
run: npx nx run-many -t knip --parallel=1
+ ci-knip-status-check:
+ if: always() && !cancelled()
+ timeout-minutes: 5
+ runs-on: ubuntu-latest
+ needs: [changed-files-check, knip]
+ steps:
+ - name: Fail job if any needs failed
+ if: contains(needs.*.result, 'failure')
+ run: exit 1