소스 검색

[ci] add paths-ignore for format and static check (#7845)

Man, Jianting (Meco) 2 년 전
부모
커밋
5b171fba6a
2개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      .github/workflows/file_check.yml
  2. 4 0
      .github/workflows/static_code_analysis.yml

+ 8 - 1
.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:

+ 4 - 0
.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: