Make docs-only PRs skip CI.yml test suite (15 secs instead of 15 minutes) (#23246)

Peter Tripp created

These were previously in place, but removed while we evaluated Merge Queues (since reverted).

Change summary

.github/workflows/ci.yml | 7 +++++++
1 file changed, 7 insertions(+)

Detailed changes

.github/workflows/ci.yml 🔗

@@ -7,9 +7,16 @@ on:
       - "v[0-9]+.[0-9]+.x"
     tags:
       - "v*"
+    paths-ignore:
+      - "docs/**/*"
+      - ".github/workflows/community_*"
+
   pull_request:
     branches:
       - "**"
+    paths-ignore:
+      - "docs/**/*"
+      - ".github/workflows/community_*"
 
 concurrency:
   # Allow only one workflow per any non-`main` branch.