Skip to content

Commit 0ad3405

Browse files
authored
fix docs api check (#1038)
run on ubuntu, fix checking condition
1 parent 2ba2902 commit 0ad3405

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
fail_under: 78
7777

7878
docs:
79-
runs-on: windows-latest
79+
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v4
8282
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
@@ -86,8 +86,9 @@ jobs:
8686
# If this fails run `hatch run docs:api` locally
8787
# and commit.
8888
git status --porcelain
89-
git status -s | grep "A" && exit 1
90-
git status -s | grep "M" && exit 1
89+
if git status -s | grep "^\s*[AM]"; then
90+
exit 1
91+
fi
9192
echo "API docs done"
9293
- run: hatch run docs:build
9394

0 commit comments

Comments
 (0)