Browse Source

Merge pull request #145 from renbaoshuo/ci/no-docs-run

chore: not run tests when docs changes
Mike Mirzayanov 1 year ago
parent
commit
abe3c225e8
1 changed files with 15 additions and 1 deletions
  1. 15 1
      .github/workflows/ci.yml

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

@@ -1,5 +1,19 @@
 name: CI
-on: [push, pull_request]
+
+on: 
+  push:
+    paths-ignore:
+      - 'docs/**'
+      - 'LICENSE'
+      - 'read.me'
+      - 'README.md'
+  pull_request:
+    paths-ignore:
+      - 'docs/**'
+      - 'LICENSE'
+      - 'read.me'
+      - 'README.md'
+
 env:
   TEST_REF_FORBID_GEN_REFS: true