From 13cb8e5bd212d09df8c540d387cd83fe84be973a Mon Sep 17 00:00:00 2001 From: Rostislav Dugin Date: Sun, 18 Jan 2026 14:49:18 +0300 Subject: [PATCH] FIX (commit messages): Allow to use backstashes in messages x2 --- .github/workflows/ci-release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index f682236..7b53a9c 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -482,8 +482,8 @@ jobs: HAS_FIX=false HAS_BREAKING=false - # Analyze each commit - printf '%s\n' "$COMMITS" | while IFS= read -r commit; do + # Analyze each commit - USE PROCESS SUBSTITUTION to avoid subshell variable scope issues + while IFS= read -r commit; do if [[ "$commit" =~ ^FEATURE ]]; then HAS_FEATURE=true echo "Found FEATURE commit: $commit" @@ -500,7 +500,7 @@ jobs: HAS_BREAKING=true echo "Found BREAKING CHANGE: $commit" fi - done + done < <(printf '%s\n' "$COMMITS") # Determine version bump if [ "$HAS_BREAKING" = true ]; then @@ -633,7 +633,8 @@ jobs: FIXES="" REFACTORS="" - printf '%s\n' "$COMMITS" | while IFS= read -r line; do + # USE PROCESS SUBSTITUTION to avoid subshell variable scope issues + while IFS= read -r line; do if [ -n "$line" ]; then COMMIT_MSG=$(echo "$line" | cut -d'|' -f1) COMMIT_HASH=$(echo "$line" | cut -d'|' -f2) @@ -666,7 +667,7 @@ jobs: fi fi fi - done + done < <(printf '%s\n' "$COMMITS") # Build changelog sections if [ -n "$FEATURES" ]; then