瀏覽代碼

Restrict triggers for compile and unit tests

Anatoli Arkhipenko 5 月之前
父節點
當前提交
9609fbf535
共有 2 個文件被更改,包括 16 次插入0 次删除
  1. 8 0
      .github/workflows/main.yml
  2. 8 0
      .github/workflows/test.yml

+ 8 - 0
.github/workflows/main.yml

@@ -6,8 +6,16 @@ on:
   # Triggers the workflow on push or pull request only for the main branch
   push:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   pull_request:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   workflow_dispatch:
 
 # This is the list of jobs that will be run concurrently.

+ 8 - 0
.github/workflows/test.yml

@@ -2,8 +2,16 @@ name: TaskScheduler Unit Tests
 on:
   push:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   pull_request:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   workflow_dispatch:
 
 jobs: