Skip to content

Commit

Permalink
updated check with loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed May 7, 2024
1 parent 3931d62 commit a3925c8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,19 @@ jobs:
echo "* *"
echo "* *"
echo "***********************************"
docker logs $container_id || echo "no logs"
exit 0
docker_logs=$(docker logs $container_id || echo "no logs")
docker_logs_check=$(echo "${docker_logs}" | grep "e2e tests completed" | grep -v grep)
if [ ! -z "${docker_logs_check}" ]; then
docker logs $container_id || echo "no logs"
echo "${docker_logs_check}"
echo "Testing Succeeded."
exit 0
else
docker logs $container_id || echo "no logs"
echo "${docker_logs_check}"
echo "Testing failed, didn't find th completed message in the logs."
exit 1
fi
else
echo "Testing in progress still...."
if [ "${{ github.event.inputs.debug }}" == "true" ]; then
Expand Down

0 comments on commit a3925c8

Please sign in to comment.