Skip to content

Commit

Permalink
github-ci: disable some workflows on doc only changes
Browse files Browse the repository at this point in the history
Don't run the following GitHub workflows on documentation only
changes:
- cifuzz
- codeql
- formatting
- rust
- scan-build
  • Loading branch information
jasonish committed Aug 2, 2023
1 parent 3e2a629 commit ae5c65f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CIFuzz
on: [pull_request]

on:
pull_request:
paths-ignore:
- "doc/**"

permissions: read-all
jobs:
Fuzzing:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: "CodeQL"
on:
push:
branches: [ master ]
paths-ignore:
- "doc/**"
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths-ignore:
- "doc/**"
schedule:
- cron: '18 21 * * 1'

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
branches-ignore:
- 'master'
- 'master-*'
paths-ignore:
- "doc/**"
pull_request:
paths-ignore:
- "doc/**"

permissions: read-all

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Check Rust

on:
- push
- pull_request
push:
paths-ignore:
- "doc/**"
pull_request:
paths-ignore:
- "doc/**"

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/scan-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Scan-build

on:
- push
- pull_request
push:
paths-ignore:
- "doc/**"
pull_request:
paths-ignore:
- "doc/**"

jobs:
scan-build:
Expand Down

0 comments on commit ae5c65f

Please sign in to comment.