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

chore: improve workflow running conditions so not everything is run unless needed (#297)

Alexis Maiquez пре 1 година
родитељ
комит
e12771b10e
2 измењених фајлова са 14 додато и 0 уклоњено
  1. 4 0
      .github/workflows/arch.yml
  2. 10 0
      .github/workflows/cmake.yml

+ 4 - 0
.github/workflows/arch.yml

@@ -5,6 +5,10 @@ on:
     workflows: [cmake]
     branches: [main]
     types: [completed]
+  push:
+    paths:
+      - 'packaging/archlinux/**'
+      - '.github/workflows/**'
 
 jobs:
   publish:

+ 10 - 0
.github/workflows/cmake.yml

@@ -2,8 +2,18 @@ name: CMake
 
 on:
   push:
+    paths:
+      - 'src/**'
+      - 'CMakeModules/**'
+      - CMakeLists.txt
+      - 'protocols/**'
     branches: [ "main" ]
   pull_request:
+    paths:
+      - 'src/**'
+      - 'CMakeModules/**'
+      - CMakeLists.txt
+      - 'protocols/**'
     branches: [ "main" ]
 
 env: