summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2023-07-23 06:52:08 -0400
committerGitHub <[email protected]>2023-07-23 18:52:08 +0800
commit5b171fba6a14c4117dc4f42e5b822e857be7b0fd (patch)
tree9d882857412f2be6d7aafed0de2dfeb7e43fca67 /.github
parentaee1bd532ed4b21e2eb2c5cfa32fd8af0b579bf3 (diff)
[ci] add paths-ignore for format and static check (#7845)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/file_check.yml9
-rw-r--r--.github/workflows/static_code_analysis.yml4
2 files changed, 12 insertions, 1 deletions
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: