From 224ba03ca4876b7468f53bfb5f8a1b4910f8beec Mon Sep 17 00:00:00 2001 From: Micheal Wilkinson Date: Sat, 21 Mar 2026 14:56:38 +0000 Subject: [PATCH] fix(decorate-pr): replace piped while-read with process substitution for docs-only detection --- decorate-pr/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decorate-pr/action.yml b/decorate-pr/action.yml index 8c93312..c1f53eb 100644 --- a/decorate-pr/action.yml +++ b/decorate-pr/action.yml @@ -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