From d64ef2ab064047ab5aed15c7861e5a44ab8022e3 Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:16:14 +0800 Subject: [PATCH] Filter the path for PR trigger and add codeowners (#248) * Filter the path for PR trigger * Add codeowners * Fix syntax in pipeline --- .github/CODEOWNERS | 1 + .github/workflows/ci_cortex_m0.yml | 5 +++++ .github/workflows/ci_cortex_m3.yml | 5 +++++ .github/workflows/ci_cortex_m4.yml | 5 +++++ .github/workflows/ci_cortex_m7.yml | 5 +++++ .pipelines/smp.yml | 13 ++++++++++++- .pipelines/tx.yml | 12 +++++++++++- 7 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..f8a27b70 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@azure-rtos/admins \ No newline at end of file diff --git a/.github/workflows/ci_cortex_m0.yml b/.github/workflows/ci_cortex_m0.yml index b098514e..0e1568f4 100644 --- a/.github/workflows/ci_cortex_m0.yml +++ b/.github/workflows/ci_cortex_m0.yml @@ -9,6 +9,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - ".github/workflows/ci_cortex_m0.yml" + - 'common/**' + - 'utility/**' + - 'ports/cortex_m0/gnu/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/ci_cortex_m3.yml b/.github/workflows/ci_cortex_m3.yml index 179c19b3..c5812025 100644 --- a/.github/workflows/ci_cortex_m3.yml +++ b/.github/workflows/ci_cortex_m3.yml @@ -9,6 +9,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - ".github/workflows/ci_cortex_m3.yml" + - 'common/**' + - 'utility/**' + - 'ports/cortex_m3/gnu/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/ci_cortex_m4.yml b/.github/workflows/ci_cortex_m4.yml index b2ba8a9d..30141d6b 100644 --- a/.github/workflows/ci_cortex_m4.yml +++ b/.github/workflows/ci_cortex_m4.yml @@ -9,6 +9,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - ".github/workflows/ci_cortex_m4.yml" + - 'common/**' + - 'utility/**' + - 'ports/cortex_m4/gnu/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/ci_cortex_m7.yml b/.github/workflows/ci_cortex_m7.yml index 7492b697..4089cefb 100644 --- a/.github/workflows/ci_cortex_m7.yml +++ b/.github/workflows/ci_cortex_m7.yml @@ -9,6 +9,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - ".github/workflows/ci_cortex_m7.yml" + - 'common/**' + - 'utility/**' + - 'ports/cortex_m7/gnu/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.pipelines/smp.yml b/.pipelines/smp.yml index 83644bbc..a445400d 100644 --- a/.pipelines/smp.yml +++ b/.pipelines/smp.yml @@ -2,7 +2,18 @@ trigger: - master pr: -- master + branches: + include: + - master + paths: + include: + - ".pipelines/tx.yml" + - "common_smp/**" + - "samples/**" + - "test/tx/**" + - "utility/**" + - "ports_smp/linux/gnu/**" + pool: vmImage: "ubuntu-22.04" diff --git a/.pipelines/tx.yml b/.pipelines/tx.yml index 19e4a710..92c09722 100644 --- a/.pipelines/tx.yml +++ b/.pipelines/tx.yml @@ -2,7 +2,17 @@ trigger: - master pr: -- master + branches: + include: + - master + paths: + include: + - ".pipelines/tx.yml" + - "common/**" + - "samples/**" + - "test/tx/**" + - "utility/**" + - "ports/linux/gnu/**" pool: vmImage: "ubuntu-22.04"