소스 검색

ci: optimise action triggers

it is pointless to run CI jobs for pushes / PRs that only change files that
would never cause a failure, such as documentation.

this avoids wasting resources for such situations.
Lyndon Brown 4 년 전
부모
커밋
013a2fdcbf
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      .github/workflows/test.yml

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

@@ -4,8 +4,10 @@ name: test
 on:
   push:
     branches: [master, dev]
+    paths: ['**.rs', '**.toml', '**.lock', '**.yml']
   pull_request:
     branches: [master, dev]
+    paths: ['**.rs', '**.toml', '**.lock', '**.yml']
 
 jobs:
   fmt: