瀏覽代碼

Skip integration runs on docs-only changes

Adds paths-ignore for docs/, *.md, *.rst, and LICENSE on the
pull_request, push, and pull_request_target triggers in the two
integration workflows. Avoids spending lint, mock, and cloud
test minutes on changes that can't affect runtime behavior.
Nuwan Goonasekera 3 月之前
父節點
當前提交
f1c5ff1599
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. 10 0
      .github/workflows/integration-cloud.yaml
  2. 10 0
      .github/workflows/integration.yaml

+ 10 - 0
.github/workflows/integration-cloud.yaml

@@ -26,8 +26,18 @@ name: Cloud integration tests
 on:
 on:
   pull_request_target:
   pull_request_target:
     types: [labeled]
     types: [labeled]
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   push:
   push:
     branches: [main]
     branches: [main]
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   workflow_dispatch: {}
   workflow_dispatch: {}
 
 
 permissions:
 permissions:

+ 10 - 0
.github/workflows/integration.yaml

@@ -12,9 +12,19 @@ on:
   push:
   push:
     branches:
     branches:
     - main
     - main
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   pull_request:
   pull_request:
     branches:
     branches:
       - main
       - main
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   workflow_dispatch: {}
   workflow_dispatch: {}
 
 
 permissions:
 permissions: