From 92ae64e7a9c1316bdcfc9bcb1a232c91d11adef0 Mon Sep 17 00:00:00 2001 From: Liuyf Date: Tue, 22 Oct 2024 09:58:30 +0800 Subject: [PATCH] =?UTF-8?q?other=EF=BC=9A=20=E6=96=B0=E5=A2=9Ecanary?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=89=93=E5=8C=85=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tag_generator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tag_generator.sh b/tag_generator.sh index 91e37105..02ddc5d3 100755 --- a/tag_generator.sh +++ b/tag_generator.sh @@ -36,9 +36,9 @@ else ((minor++)) new_patch=0 break - elif [[ "$commit_message" =~ ("fix:"*) ]] && [[ new_patch == patch ]]; then + elif [[ "$commit_message" =~ ("fix:"*) ]] && [[ $new_patch == $patch ]]; then ((new_patch++)) - elif [[ ! "$commit_message" =~ ("Merge"* | "Revert"*) ]] && [[ new_patch == patch ]]; then + elif [[ ! "$commit_message" =~ ("Merge"* | "Revert"*) ]] && [[ $new_patch == $patch ]]; then ((new_patch++)) fi done < <(echo "$compare_json" | jq -c '.commits[] | {id: .id, message: .message}')