--- a/.github/workflows/forkless-update-nodata.yml +++ b/.github/workflows/forkless-update-nodata.yml @@ -134,14 +134,14 @@ - name: Check if docker logs consist logs related to Runtime Upgrade testing. if: success() run: | - counter=160 - function check_container_status { + counter=160 + function check_container_status { docker inspect -f {{.State.Running}} node-parachain - } - function do_docker_logs { + } + function do_docker_logs { docker logs --details node-parachain 2>&1 - } - function is_started { + } + function is_started { if [ "$(check_container_status)" == "true" ]; then echo "Container: node-parachain RUNNING"; echo "Check Docker logs" @@ -157,9 +157,9 @@ exit 1 fi exit 0 - } - while ! is_started; do - echo "Waiting for special message in log files " + } + while ! is_started; do + echo "Waiting for special message in log files " sleep 30s counter=$(( $counter - 1 )) echo "Counter: $counter"