From f67f8d1d3bf344ab238c0e2bee9647f65e60035f Mon Sep 17 00:00:00 2001 From: vcerenu Date: Mon, 6 Jun 2022 11:15:35 -0300 Subject: [PATCH] Test CI --- .github/workflows/push.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 02255bbb..16450baa 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -37,16 +37,16 @@ jobs: run: | sleep 60 status="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | wc -l`" - status-green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l`" - if [[ $status-green -eq $status ]]; then + status_green="`curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s | grep green | wc -l`" + if [[ $status_green -eq $status ]]; then curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s else curl -XGET "https://0.0.0.0:9200/_cluster/health" -u admin:SecretPassword -k -s exit 1 fi - status-index="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | wc -l`" - status-index-green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | grep -E "green" | wc -l`" - if [[ $status-index-green -eq $status-index ]]; then + status_index="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | wc -l`" + status_index_green="`curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s | grep -E "green" | wc -l`" + if [[ $status_index_green -eq $status_index ]]; then curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s else curl -XGET "https://0.0.0.0:9200/_cat/indices" -u admin:SecretPassword -k -s