From 23b001240f28c483d95c2d84b3a554cf3dd3bb3f Mon Sep 17 00:00:00 2001 From: Davidson Bruno Date: Wed, 1 May 2024 16:44:20 -0300 Subject: [PATCH] fix: added treatment for repository version in main --- .../latest-version-obtaining/latest-version-obtaining.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/actions/latest-version-obtaining/latest-version-obtaining.sh b/actions/latest-version-obtaining/latest-version-obtaining.sh index 992b1a0..57e769d 100755 --- a/actions/latest-version-obtaining/latest-version-obtaining.sh +++ b/actions/latest-version-obtaining/latest-version-obtaining.sh @@ -58,7 +58,12 @@ get_last_version() { if is_version_published "${last_origin_branch_version}" "${main_branch}"; then version="${last_origin_branch_version}" - printf "The origin branch version is already in '%s'.\n" "${main_branch}" + printf "The origin branch version is in '%s'.\n" "${main_branch}" + fi + + if is_version_published "${last_repository_version}" "${main_branch}"; then + version="${last_repository_version}" + printf "The repository version is in '%s'.\n" "${main_branch}" fi if is_missing "${version}"; then