From 4044408bac9f6430d4b7ce0cc4aa75914a180238 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Tue, 10 Oct 2023 17:01:41 +0000 Subject: [PATCH] strip quotes --- .github/actions/validate-endpoints/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/validate-endpoints/action.yml b/.github/actions/validate-endpoints/action.yml index 5160a2b9..0e205eea 100644 --- a/.github/actions/validate-endpoints/action.yml +++ b/.github/actions/validate-endpoints/action.yml @@ -146,7 +146,7 @@ runs: - name: Validate /app/metrics endpoint shell: bash run: | - appStatusMetric=$(curl -H 'Authorization: ${{ inputs.license-id }}' -s --fail --show-error localhost:8888/api/v1/app/metrics | jq '."X-Replicated-AppStatus"' | tr -d '\n') + appStatusMetric=$(curl -H 'Authorization: ${{ inputs.license-id }}' -s --fail --show-error localhost:8888/api/v1/app/metrics | jq -r '."X-Replicated-AppStatus"' | tr -d '\n') if [ "$appStatusMetric" != "ready" ]; then echo "Expected app status metric 'X-Replicated-AppStatus' to be 'ready', but is set to '$appStatusMetric'."