summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVir Linden <60274682+vir-linden@users.noreply.github.com>2024-04-19 19:47:46 +0100
committerVir Linden <60274682+vir-linden@users.noreply.github.com>2024-04-19 19:47:46 +0100
commitf39987f3828fca4520db335582daadd9bc484255 (patch)
treeb8e6fe7e0f435c81742838a7dd73e557f9c92729
parentc2730b4fffe580bc99f29f1ba37aa45427f99b93 (diff)
https://github.com/secondlife/viewer/issues/1286 - branch var from github.repository
-rw-r--r--.github/workflows/build.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 3abb43b2b2..f948669f32 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -172,10 +172,12 @@ jobs:
export AUTOBUILD="$(which autobuild)"
# determine the viewer channel from the branch name
- IFS='/' read -ra ba <<< "$AUTOBUILD_VCS_BRANCH"
- prefix=${ba[0]}
+ branch=${{ github.repository }}
+ IFS='/' read -ra ba <<< $branch
+ username=${ba[0]}
+ prefix=${ba[1]}
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')
+ proj_name=$(echo ${ba[2]} | 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" ];
then
@@ -184,7 +186,7 @@ jobs:
export viewer_channel="Second Life Test"
fi
echo "viewer_channel=$viewer_channel" >> "$GITHUB_OUTPUT"
-
+ exit 1
# On windows we need to point the build to the correct python
# as neither CMake's FindPython nor our custom Python.cmake module
# will resolve the correct interpreter location.