From e6d863c61090c5f236657f67d688fafa349a5e55 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sat, 28 Nov 2020 19:18:18 +0000 Subject: [PATCH] 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 --- .github/workflows/build.yml | 2 ++ .github/workflows/clang-format-lint.yml | 2 ++ .github/workflows/doc-checks.yml | 2 ++ .github/workflows/test.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc003283..a421c6c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,11 @@ on: push: paths: + - ".github/workflows/build.yml" - "app/**" pull_request: paths: + - ".github/workflows/build.yml" - "app/**" name: Build diff --git a/.github/workflows/clang-format-lint.yml b/.github/workflows/clang-format-lint.yml index 70ae9863..6eb73cc4 100644 --- a/.github/workflows/clang-format-lint.yml +++ b/.github/workflows/clang-format-lint.yml @@ -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/**" diff --git a/.github/workflows/doc-checks.yml b/.github/workflows/doc-checks.yml index a31a88e6..df0e53fc 100644 --- a/.github/workflows/doc-checks.yml +++ b/.github/workflows/doc-checks.yml @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3521e9b..8e66ab7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/**"