Skip to content

Commit

Permalink
No docs build on branches
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Oct 8, 2024
1 parent 86d5c0b commit 8c2b2e0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Build docs

on:
# DON'T run on pushed commits to master, ONLY on new commits on pull requests
push:
branches-ignore:
- 'master'
paths-ignore:
- 'docs/**'
# Use push trigger since 'paths-ignore' are not respected as expected by 'on.pull_request.paths-ignore', see https://github.com/actions/runner/issues/2324
# 'paths-ignore' are not respected as expected, see https://github.com/actions/runner/issues/2324
pull_request:
types: [opened]
branches: [ master ]
# paths-ignore:
# - 'docs/**'

jobs:
build_docs:
Expand Down

0 comments on commit 8c2b2e0

Please sign in to comment.