summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-05-29 20:56:30 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2025-05-31 01:40:34 +0300
commit7aea88fb84e6cb5412662dd4de4e7589a6801ba3 (patch)
treee7c3af2a1001444cb0b73e1ed1f9bfbeb3a7d1bb
parentbd7e79df36f8bf473bd6332eda7f1def5b9aaad7 (diff)
Use awk to make PV channel name
-rw-r--r--.github/workflows/build.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 50b0cf02bc..a9807e1dba 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -218,8 +218,10 @@ jobs:
prefix=${ba[0]}
if [ "$prefix" == "project" ]; then
IFS='_' read -ra prj <<< "${ba[1]}"
+ prj_str="${prj[*]}"
# uppercase first letter of each word
- export viewer_channel="Second Life Project ${prj[*]^}"
+ capitalized=$(echo "$prj_str" | awk '{for (i=1; i<=NF; i++) $i = toupper(substr($i,1,1)) substr($i,2); print}')
+ export viewer_channel="Second Life Project $capitalized"
elif [[ "$prefix" == "release" || "$prefix" == "main" ]];
then
export viewer_channel="Second Life Release"