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