From 01d2214a0d8e86a6f62ea5cc4128d10aa2c5c89a Mon Sep 17 00:00:00 2001 From: Mike Nguyen Date: Thu, 7 Nov 2024 12:20:24 +0000 Subject: [PATCH] fix(ci): trim blank spaces from version strings Signed-off-by: Mike Nguyen --- .github/workflows/validate-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-examples.yml b/.github/workflows/validate-examples.yml index 9304f54d..504b8788 100644 --- a/.github/workflows/validate-examples.yml +++ b/.github/workflows/validate-examples.yml @@ -76,14 +76,14 @@ jobs: - name: Determine latest Dapr Runtime version if: env.DAPR_RUNTIME_VERSION == '' run: | - RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d '",v') + RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d ' ",v') echo "DAPR_RUNTIME_VERSION=$RUNTIME_VERSION" >> $GITHUB_ENV echo "Found $RUNTIME_VERSION" - name: Determine latest Dapr Cli version if: env.DAPR_CLI_VERSION == '' run: | - CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d '",v') + CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d ' ",v') echo "DAPR_CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV echo "Found $CLI_VERSION"