From 94563f102494f8b507074babc37fffa74737dfa6 Mon Sep 17 00:00:00 2001 From: Will Smith Date: Sat, 16 Sep 2023 03:38:51 -0700 Subject: [PATCH] Add logic to use release channel instead of version for release test runs (#571) --- .github/workflows/test.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5e90b9f1..cbf3c7ba 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -146,12 +146,16 @@ jobs: if: steps.gen-id.outputs.RUN_TEST == 'true' run: | for attempt in 1 2 3 4 5; do - if [[ -n "${{ inputs.version }}" ]]; then + if [[ "${{ inputs.version }}" != "edge" && "${{ inputs.version }}" != *"rc"* ]]; then + INPUT_CHANNEL=$(echo "${{ inputs.version }}" | cut -d '.' -f 1,2) + echo "Downloading rad CLI version $INPUT_CHANNEL" + wget -q "${{ env.RAD_CLI_URL }}" -O - | /bin/bash -s $INPUT_CHANNEL + elif [[ -n "${{ inputs.version }}" ]]; then echo "Downloading rad CLI version ${{ inputs.version }}" wget -q "${{ env.RAD_CLI_URL }}" -O - | /bin/bash -s ${{ inputs.version }} else - echo "Downloading latest rad CLI" - wget -q "${{ env.RAD_CLI_URL }}" -O - | /bin/bash + echo "Downloading edge rad CLI" + wget -q "${{ env.RAD_CLI_URL }}" -O - | /bin/bash -s edge fi if [ $? -eq 0 ]; then