difftreelog
Formating has been amended.
in: master
1 file changed
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth134 - name: Check if docker logs consist logs related to Runtime Upgrade testing.134 - name: Check if docker logs consist logs related to Runtime Upgrade testing.135 if: success()135 if: success()136 run: |136 run: |137 counter=160137 counter=160138 function check_container_status {138 function check_container_status {139 docker inspect -f {{.State.Running}} node-parachain139 docker inspect -f {{.State.Running}} node-parachain140 }140 }141 function do_docker_logs {141 function do_docker_logs {142 docker logs --details node-parachain 2>&1142 docker logs --details node-parachain 2>&1143 }143 }144 function is_started {144 function is_started {145 if [ "$(check_container_status)" == "true" ]; then145 if [ "$(check_container_status)" == "true" ]; then146 echo "Container: node-parachain RUNNING";146 echo "Container: node-parachain RUNNING";147 echo "Check Docker logs"147 echo "Check Docker logs"157 exit 1157 exit 1158 fi158 fi159 exit 0159 exit 0160 }160 }161 while ! is_started; do161 while ! is_started; do162 echo "Waiting for special message in log files "162 echo "Waiting for special message in log files "163 sleep 30s163 sleep 30s164 counter=$(( $counter - 1 ))164 counter=$(( $counter - 1 ))165 echo "Counter: $counter"165 echo "Counter: $counter"