Skip to content

Commit

Permalink
Namespace len truncation, default values update (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored May 30, 2023
1 parent 46de013 commit dfd44f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ inputs:
required: false
default: ""
version:
description: "Version of devnet chart (default: 0.1.22)"
description: "Version of devnet chart (default: 0.1.26)"
required: false
default: "0.1.22"
default: "0.1.26"
chart:
description: "Name of the help chart to use. Recommended: use default (default: starship/devnet)"
required: false
default: "starship/devnet"
repo:
description: "Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship)"
description: "Helm repo to fetch the chart from (default: https://thestarship.io)"
required: false
default: "https://cosmology-tech.github.io/starship"
default: "https://thestarship.io"
name:
description: "Helm chart release name for installing helm chart (default: starship-devnet)"
required: false
Expand Down Expand Up @@ -98,6 +98,8 @@ runs:
namespace="${namespace// /-}"
namespace="${namespace//\//-}"
namespace=$(awk '{print tolower($0)}' <<< $namespace)
(( ${#namespace} > 62 )) && namespace="$(echo $namespace | cut -c1-59)$((RANDOM%1000))"
namespace=$(echo $namespace | cut -c1-60)
echo "Setting namespace to $namespace"
echo "namespace=$namespace" >> $GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit dfd44f0

Please sign in to comment.