Skip to content

Commit

Permalink
Match the only tags starting with word latest for latest check
Browse files Browse the repository at this point in the history
Signed-off-by: Chaminda Divitotawela <[email protected]>
  • Loading branch information
cdivitotawela committed Oct 3, 2024
1 parent 03f826e commit 184f852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/BesuContainerVerify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ else
fi

# For the latest tag check the version match
if [[ ${TAG} =~ "latest" && ${CHECK_LATEST} == "true" ]]
if [[ ${TAG} =~ ^latest && ${CHECK_LATEST} == "true" ]]
then
_VERSION_IN_LOG=$(docker logs ${CONTAINER_NAME} | grep "#" | grep "Besu version" | cut -d " " -f 4 | sed 's/\s//g')
echo "Extracted version from logs [$_VERSION_IN_LOG]"
Expand Down

0 comments on commit 184f852

Please sign in to comment.