diff --git a/.github/scripts/file-watcher.sh b/.github/scripts/file-watcher.sh index e7957a23f..6d9ef0085 100755 --- a/.github/scripts/file-watcher.sh +++ b/.github/scripts/file-watcher.sh @@ -5,7 +5,7 @@ WATCHER_PATH=$1 echo 0 > error.txt # Find all files in the snippets folder -find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do +find $WATCHER_PATH -type f -name '*.md' -o -name '*.yaml' -print0 | while IFS= read -r -d '' file; do # Check if the file contains the string "WATCHER_URL" and is therefore a watcher file cat "$file" | grep 'WATCHER_URL' >> /dev/null || continue