Skip to content

Commit

Permalink
fix: added treatment for repository version in main
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsonbrsilva committed May 1, 2024
1 parent fc3bcaa commit 23b0012
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion actions/latest-version-obtaining/latest-version-obtaining.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23b0012

Please sign in to comment.