浏览代码

Skip CI if changes are limited to non-code paths

Jeremy Stretch 1 年之前
父节点
当前提交
a3c4984623
共有 1 个文件被更改,包括 12 次插入1 次删除
  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