From 8d7a064c2fdcad529b971bef88b8bc3b992dec9d Mon Sep 17 00:00:00 2001 From: Shiipou Date: Tue, 13 Jun 2023 10:24:14 +0200 Subject: [PATCH] fix: wrong version incrementing --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index f7ab75c..10bffcf 100644 --- a/action.yml +++ b/action.yml @@ -175,9 +175,12 @@ runs: if [ "$level" -eq "3" ]; then # Increment major version tag echo $(( major_version++ )) >> /dev/null + minor_version=0 + patch_version=0 elif [ "$level" -eq "2" ]; then # Increment minor version tagc echo $(( minor_version++ )) >> /dev/null + patch_version=0 elif [ "$level" == "1" ]; then # Increment patch version tag echo $(( patch_version++ )) >> /dev/null