diff --git a/.github/workflows/brokenlinks-check.yml b/.github/workflows/brokenlinks-check.yml new file mode 100644 index 00000000..d44a3498 --- /dev/null +++ b/.github/workflows/brokenlinks-check.yml @@ -0,0 +1,29 @@ +name: Broken Links Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + broken-links-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install Mintlify + run: npm i -g mintlify + + - name: Run Broken Links Check + run: mintlify check-links