diff options
author | Vir Linden <60274682+vir-linden@users.noreply.github.com> | 2024-05-01 16:42:09 +0100 |
---|---|---|
committer | Vir Linden <60274682+vir-linden@users.noreply.github.com> | 2024-05-01 16:42:09 +0100 |
commit | 65495ba7655cbe17d282536a8c2a21d2ac29de23 (patch) | |
tree | e3193640de2de3c0cf830fbfd0495c8023349745 | |
parent | ab8547098560a1dbf0ad7211fe8d0fd05c56cc81 (diff) |
set viewer channel from branch
-rw-r--r-- | .github/workflows/build.yaml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 813b6a96ef..42d6562db6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -59,11 +59,6 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha || github.sha }} - - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" - name: Setup python uses: actions/setup-python@v5 @@ -183,13 +178,12 @@ jobs: export AUTOBUILD="$(which autobuild)" # determine the viewer channel from the branch name - branch=${{ github.repository }} + branch=$AUTOBUILD_VCS_BRANCH echo "branch=$branch" >> "$GITHUB_OUTPUT" IFS='/' read -ra ba <<< $branch - username=${ba[0]} - prefix=${ba[1]} + prefix=${ba[0]} if [ "$prefix" == "project" ]; then - 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') + 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" ]; then |