From 0ad3405f462b741570ab192abc490da8fe9780e8 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 17 Sep 2024 01:27:30 -0700 Subject: [PATCH] fix docs api check (#1038) 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