From 221a7cb312ecf82d96c6d470477f81f97b1393ec Mon Sep 17 00:00:00 2001 From: David Ansermino <14164624+ansermino@users.noreply.github.com> Date: Wed, 11 Dec 2024 17:57:12 -0500 Subject: [PATCH] :shrug: --- .github/workflows/docs-check.yml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index b2a5285fb63..0c0799101ad 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -1,15 +1,37 @@ -name: CI -on: pull_request +name: Docs Check + +# Cancel workflow if there is a new change to the branch. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +on: + push: + branches: + - main + paths: + - '**.md' + - '.github/workflows/docs-check.yml' + merge_group: + pull_request: + branches: + - main + paths: + - '**.md' + - '.github/workflows/docs-check.yml' jobs: - check: + docs-check: name: Check runs-on: ubuntu-latest + defaults: + run: + working-directory: ./docs steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: -# cache: yarn + cache: yarn node-version: 18 - run: corepack enable - run: make format-spellcheck-dictionary-check @@ -17,5 +39,4 @@ jobs: - run: yarn typecheck - run: yarn spellcheck - run: yarn format-check - - run: yarn build