fix(decorate-pr): replace piped while-read with process substitution for docs-only detection
This commit is contained in:
@@ -229,7 +229,7 @@ runs:
|
||||
has_qualifying_changes=false
|
||||
|
||||
if [[ "$total_files" -gt 0 ]]; then
|
||||
printf '%s' "$diff_data" | jq -r '.[].filename' 2>/dev/null | while read -r filename; do
|
||||
while IFS= read -r filename; do
|
||||
# Check if file matches docs globs
|
||||
is_doc=false
|
||||
IFS=',' read -ra glob_array <<< "$DOCS_GLOBS"
|
||||
@@ -242,7 +242,7 @@ runs:
|
||||
fi
|
||||
done
|
||||
|
||||
# .md files are always docs unless they're actual code docs with changes
|
||||
# .md files are always docs
|
||||
if [[ "$filename" == *.md ]]; then
|
||||
is_doc=true
|
||||
fi
|
||||
@@ -250,7 +250,7 @@ runs:
|
||||
if [[ "$is_doc" != "true" ]]; then
|
||||
docs_only_true=false
|
||||
fi
|
||||
done
|
||||
done < <(printf '%s' "$diff_data" | jq -r '.[].filename' 2>/dev/null)
|
||||
fi
|
||||
|
||||
# Get changeset for changelog file
|
||||
|
||||
Reference in New Issue
Block a user