diff --git a/_metadata_validation/README.md b/_metadata_validation/README.md index b2e36532..7707796b 100644 --- a/_metadata_validation/README.md +++ b/_metadata_validation/README.md @@ -50,6 +50,8 @@ Any file under path `docs/shipping` that is a **markdown** (`.md`) file, should ## Changelog: +- **0.0.3**: + - Bug fix - validate only markdown files. - **0.0.2**: - More details error logs. - Match validation to new sub-folder structure. diff --git a/_metadata_validation/validate_metadata.py b/_metadata_validation/validate_metadata.py index 9898efbe..a416d38e 100644 --- a/_metadata_validation/validate_metadata.py +++ b/_metadata_validation/validate_metadata.py @@ -98,7 +98,7 @@ def get_changed_files(): files_to_track = [] for file in files_arr: docs_path = os.getenv(consts.ENV_DOCS_PREFIX, consts.DOCS_PATH) - if file.startswith(docs_path): + if file.startswith(docs_path) and file.endswith('.md'): files_to_track.append(file) return files_to_track