Skip to content

Commit

Permalink
fix docs api check
Browse files Browse the repository at this point in the history
run on ubuntu, fix checking condition
  • Loading branch information
minrk committed Sep 17, 2024
1 parent 2ba2902 commit bd794e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit bd794e7

Please sign in to comment.