瀏覽代碼

meta: limit the number of unnecessary CI runs (#4086)

Antoine du Hamel 2 年之前
父節點
當前提交
7e291abd98
共有 4 個文件被更改,包括 12 次插入1 次删除
  1. 5 0
      .github/workflows/ci.yml
  2. 3 0
      .github/workflows/companion.yml
  3. 1 1
      .github/workflows/e2e.yml
  4. 3 0
      .github/workflows/website.yml

+ 5 - 0
.github/workflows/ci.yml

@@ -6,6 +6,11 @@ on:
   pull_request:
     # We want all branches so we configure types to be the GH default again
     types: [ opened, synchronize, reopened ]
+    paths-ignore:
+      - 'examples/**'
+      - 'private/**'
+      - 'website/**'
+      - '.github/workflows/**'
 
 jobs:
   unit_tests:

+ 3 - 0
.github/workflows/companion.yml

@@ -5,6 +5,9 @@ on:
   pull_request:
     # We want all branches so we configure types to be the GH default again
     types: [ opened, synchronize, reopened ]
+    paths:
+      - yarn.lock
+      - 'packages/@uppy/companion/**'
 
 jobs:
   test:

+ 1 - 1
.github/workflows/e2e.yml

@@ -16,7 +16,7 @@ on:
       - 'examples/**'
       - 'private/**'
       - 'website/**'
-      - .github/workflows/e2e.yml
+      - '.github/workflows/**'
   pull_request:
     types: [ opened, synchronize, reopened ]
     paths:

+ 3 - 0
.github/workflows/website.yml

@@ -3,6 +3,9 @@ name: Deploy uppy.io
 on:
   push:
     branches: main
+    paths:
+      - yarn.lock
+      - 'website/**'
 
 jobs:
   deploy: