From 5b171fba6a14c4117dc4f42e5b822e857be7b0fd Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Sun, 23 Jul 2023 06:52:08 -0400 Subject: [PATCH] [ci] add paths-ignore for format and static check (#7845) --- .github/workflows/file_check.yml | 9 ++++++++- .github/workflows/static_code_analysis.yml | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/file_check.yml b/.github/workflows/file_check.yml index 050c51f125..ed6a61788b 100644 --- a/.github/workflows/file_check.yml +++ b/.github/workflows/file_check.yml @@ -1,6 +1,13 @@ name: Check File Format and License -on: [pull_request] +on: + pull_request: + branches: + - master + paths-ignore: + - documentation/** + - '**/README.md' + - '**/README_zh.md' jobs: scancode_job: diff --git a/.github/workflows/static_code_analysis.yml b/.github/workflows/static_code_analysis.yml index c3a74316a9..4a222cc7e0 100644 --- a/.github/workflows/static_code_analysis.yml +++ b/.github/workflows/static_code_analysis.yml @@ -4,6 +4,10 @@ on: pull_request: branches: - master + paths-ignore: + - documentation/** + - '**/README.md' + - '**/README_zh.md' jobs: scancode_job: