Skip to content

Commit

Permalink
CI: Do not build docs on draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Oct 23, 2024
1 parent 02209f8 commit 26f2215
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: docs

on:
# Run on pull requests targeting the main branch
# Run on pull requests
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review

# Run on commits pushed to the main branch
push:
Expand All @@ -25,6 +28,7 @@ jobs:
permissions:
contents: read
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down

0 comments on commit 26f2215

Please sign in to comment.