From 1122e0d7b3e0cec16c4b760300e5a35ebaacbad4 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Thu, 11 Aug 2022 15:11:18 +0000 Subject: [PATCH] Workflow built-in Bash script has been updated. --- --- a/.github/workflows/forkless-update-nodata.yml +++ b/.github/workflows/forkless-update-nodata.yml @@ -118,17 +118,25 @@ - name: Check if docker logs consist logs related to Runtime Upgrade testing. if: success() + run: | + function do_docker_logs { + DOCKER_LOGS=$(docker logs --details node-parachain 2>&1) + } + function is_started { + if [[ ${DOCKER_LOGS} != *"PARACHAINS' RUNTIME UPGRADE TESTING"* ]];then + return 0 + fi + return 1 + } + while ! is_started; do + echo "Waiting for "PARACHAINS' RUNTIME UPGRADE TESTING" in container logs" + sleep 15s + done + echo "Test completed." + exit 0 shell: bash - run: | - function do_docker_logs { DOCKER_LOGS=$(docker logs container node-parachain --details 2>&1)} - function is_started { if [[ ${DOCKER_LOGS} != *"RUNTIME UPGRADE TESTING"* ]];then return 0 fi return 1} - while ! is_started; do - echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs" - sleep 15s - done - echo "Test completed." - exit 0 + - name: Collect Docker Logs if: success() || failure() uses: jwalton/gh-docker-logs@v2.2.0 -- gitstuff