Преглед изворни кода

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 пре 16 часа
родитељ
комит
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:
   pull_request_target:
     types: [labeled]
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   push:
     branches: [main]
+    paths-ignore:
+    - 'docs/**'
+    - '**.md'
+    - '**.rst'
+    - LICENSE
   workflow_dispatch: {}
 
 permissions:

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

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