Просмотр исходного кода

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 17 часов назад
Родитель
Сommit
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: