Skip to content

Commit

Permalink
versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
willdavsmith committed Sep 14, 2023
1 parent 201268a commit cc2bffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Radius version number to use (e.g. 0.22.0, 0.23.0-rc1)'
description: 'Radius version number to use (e.g. 0.1.0, 0.1.0-rc1)'
required: true
default: ''
type: string
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Radius version number to use (e.g. 0.22.0, 0.23.0-rc1, edge). Defaults to edge.'
description: 'Radius version number to use (e.g. 0.1.0, 0.1.0-rc1, edge). Defaults to edge.'
required: false
default: 'edge'
type: string
Expand Down Expand Up @@ -193,7 +193,10 @@ 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"
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
Expand Down

0 comments on commit cc2bffd

Please sign in to comment.