Browse Source

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
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
e6d863c610
  1. 2
      .github/workflows/build.yml
  2. 2
      .github/workflows/clang-format-lint.yml
  3. 2
      .github/workflows/doc-checks.yml
  4. 2
      .github/workflows/test.yml

2
.github/workflows/build.yml

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

2
.github/workflows/clang-format-lint.yml

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

2
.github/workflows/doc-checks.yml

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

2
.github/workflows/test.yml

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

Loading…
Cancel
Save