From bd794e7d6a63f47f39259673af2aa7bd02a1f86a Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 17 Sep 2024 10:01:43 +0200 Subject: [PATCH] fix docs api check run on ubuntu, fix checking condition --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9fe57ae8..16550808 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,7 +76,7 @@ jobs: fail_under: 78 docs: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 @@ -86,8 +86,9 @@ jobs: # If this fails run `hatch run docs:api` locally # and commit. git status --porcelain - git status -s | grep "A" && exit 1 - git status -s | grep "M" && exit 1 + if git status -s | grep "^\s*[AM]"; then + exit 1 + fi echo "API docs done" - run: hatch run docs:build