From 491d066277333c6d8d69e85d7d123c66a74f3fc5 Mon Sep 17 00:00:00 2001 From: Sabuj Kundu Date: Wed, 22 Jan 2025 11:18:11 +0600 Subject: [PATCH] wtf3 --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a672c42..17ef733 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -72,13 +72,13 @@ jobs: fi # Break if a new version header is found after the current version - if [[ $found_version -eq 1 && "$line" =~ ^\= [0-9]+\.[0-9]+\.[0-9]+\ =$ ]]; then + if [[ $found_version -eq 1 ]] && echo "$line" | grep -qE '^= [0-9]+\.[0-9]+\.[0-9]+ =$'; then echo "DEBUG: Found a new version header. Stopping collection." break fi # Collect lines starting with '*' if we are in the current version section - if [[ $found_version -eq 1 && "$line" =~ ^\* ]]; then + if [[ $found_version -eq 1 ]] && echo "$line" | grep -qE '^\*'; then echo "DEBUG: Found changelog entry: $line" release_notes+="${line}\n" continue