Browse Source

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

Antoine du Hamel 2 years ago
parent
commit
7e291abd98

+ 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: