Skip to content

Commit

Permalink
[CI] Update CI rules for docs (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhzh123 authored Feb 26, 2023
1 parent 739b99f commit 830a82f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
# we cannot use AWS credential in this workflow. Instead, we trigger
# another workflow to run the rest CI jobs on AWS batch.
pull_request:
paths-ignore:
- 'docs/**'

defaults:
run:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/sphinx_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ on:
push:
branches:
- main
paths:
- 'docs/**'
pull_request:
branches:
- main
paths:
- 'docs/**'

jobs:
build:
Expand All @@ -19,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: docs
ref: ${{ github.ref }}
# This step uses ammaraskar's Sphinx Build Action: https://github.com/ammaraskar/sphinx-action
- uses: ammaraskar/sphinx-action@master
with:
Expand Down

0 comments on commit 830a82f

Please sign in to comment.