Browse Source

Skip CI if changes are limited to non-code paths

Jeremy Stretch 1 năm trước cách đây
mục cha
commit
a3c4984623
1 tập tin đã thay đổi với 12 bổ sung1 xóa
  1. 12 1
      .github/workflows/ci.yml

+ 12 - 1
.github/workflows/ci.yml

@@ -1,7 +1,18 @@
 name: CI
-on: [push, pull_request]
+
+on:
+  push:
+    paths-ignore:
+      - 'contrib/**'
+      - 'docs/**'
+  pull_request:
+    paths-ignore:
+      - 'contrib/**'
+      - 'docs/**'
+
 permissions:
   contents: read
+
 jobs:
   build:
     runs-on: ubuntu-latest