From acbf2e61f72a89dadbf21ebec16018ee9772581f Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 23 Jul 2023 01:05:30 -0400 Subject: [PATCH] [ci] add paths-ignore for format and static check --- .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 050c51f125e..ed6a61788b5 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 c3a74316a98..4a222cc7e01 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: