summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorVir Linden <60274682+vir-linden@users.noreply.github.com>2024-05-02 09:48:26 -0400
committerGitHub <noreply@github.com>2024-05-02 09:48:26 -0400
commiteb0f963b46c68ad8faee133996599ba97b54d034 (patch)
tree169da2714603d56b84ba79150e3b5e0a8f38937f /.github
parent7f23f160d7520034afd8c3be8a184eac1716227a (diff)
Update build.yaml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index d318d2eaf3..e4952d9493 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -179,13 +179,13 @@ jobs:
# determine the viewer channel from the branch name
branch=$AUTOBUILD_VCS_BRANCH
- echo "branch=$branch" >> "$GITHUB_OUTPUT"
IFS='/' read -ra ba <<< $branch
prefix=${ba[0]}
if [ "$prefix" == "project" ]; then
- proj_name=$(echo ${ba[1]} | sed -e 's/_/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2));}1')
- export viewer_channel="Second Life Project $proj_name"
- elif [ "$prefix" == "release" ] || [ "$prefix" == "main" ];
+ IFS='_' read -ra prj << "${ba[1]}"
+ # uppercase first letter of each word
+ export viewer_channel="Second Life Project ${prj[*]^}"
+ elif [ "$prefix" == "release" || "$prefix" == "main" ];
then
export viewer_channel="Second Life Release"
else