diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index dfe3265..268ce73 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -196,6 +196,11 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s
         continue
     fi
 
+    # skip milestone tags
+    if [[ $branch =~ yocto-.*_M[0-9] ]]; then
+      continue
+    fi
+
     echo Building $branch
     git checkout $branch
     git reset --hard
