build(workflows): add each workflow to its own trigger conditions

For each workflow, add its path to its own trigger conditions so that it automatically re-triggers for testing purposes whenever it is changed.

PR: #443
This commit is contained in:
innovaker 2020-11-28 19:18:18 +00:00 committed by Pete Johanson
parent 307fd5d250
commit e6d863c610
4 changed files with 8 additions and 0 deletions

View File

@ -1,9 +1,11 @@
on:
push:
paths:
- ".github/workflows/build.yml"
- "app/**"
pull_request:
paths:
- ".github/workflows/build.yml"
- "app/**"
name: Build

View File

@ -3,6 +3,7 @@ name: clang-format-lint
on:
push:
paths:
- ".github/workflows/clang-format-lint.yml"
- "app/boards/**/*.c"
- "app/include/**/*.h"
- "app/src/**"
@ -10,6 +11,7 @@ on:
- "app/drivers/**/*.h"
pull_request:
paths:
- ".github/workflows/clang-format-lint.yml"
- "app/boards/**/*.c"
- "app/include/**/*.h"
- "app/src/**"

View File

@ -3,9 +3,11 @@ name: doc-checks
on:
push:
paths:
- ".github/workflows/doc-checks.yml"
- "docs/**"
pull_request:
paths:
- ".github/workflows/doc-checks.yml"
- "docs/**"
jobs:

View File

@ -1,10 +1,12 @@
on:
push:
paths:
- ".github/workflows/test.yml"
- "app/tests/**"
- "app/src/**"
pull_request:
paths:
- ".github/workflows/test.yml"
- "app/tests/**"
- "app/src/**"