ci: tests: do not build all tests when docs/images change

When we change documentation or board images, do not build all tests for
this board. Only add more tests when actual code has changed.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/ci/get_modified_tests.py b/scripts/ci/get_modified_tests.py
index 23793aa..1de5263 100755
--- a/scripts/ci/get_modified_tests.py
+++ b/scripts/ci/get_modified_tests.py
@@ -57,6 +57,8 @@
     files = commit.split("\n")
     tests = set()
     for f in files:
+        if f.endswith(".rst"):
+            continue
         d = os.path.dirname(f)
         while d:
             if os.path.exists(os.path.join(d, "testcase.yaml")) or os.path.exists(os.path.join(d, "sample.yaml")):