summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-07-21 15:24:11 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-07-21 15:24:11 -0400
commit6605403661da96dde7ff6dfb6bcfa87fc087ff0e (patch)
treeca3f35ed802a4f1a70ac2350ebbc346ed08004b4 /.github/workflows
parent7cca3506b66cd6cbc04e795d84b1991b42b224d6 (diff)
SL-18837: Tags can't have spaces or colons. Look for valid ones.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yaml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 35db50ef00..4262d3b6ef 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -163,11 +163,12 @@ jobs:
# seen before, so numerous tests don't know about it.
[[ "$arch" == "MINGW6" ]] && arch=CYGWIN
export AUTOBUILD="$(which autobuild)"
- # Build with a tag like "Second Life Project Shiny:abcdef0" to get a
- # viewer channel "Second Life Project Shiny" (ignoring ":hash",
+ # Build with a tag like "Second_Life_Project_Shiny#abcdef0" to get a
+ # viewer channel "Second Life Project Shiny" (ignoring "#hash",
# needed to disambiguate tags).
- if [[ "$GITHUB_REF_TYPE" == "tag" && "${GITHUB_REF_NAME:0:12}" == "Second Life " ]]
- then export viewer_channel="${GIT_REF%:*}"
+ if [[ "$GITHUB_REF_TYPE" == "tag" && "${GITHUB_REF_NAME:0:12}" == "Second_Life_" ]]
+ then viewer_channel="${GITHUB_REF_NAME%#*}"
+ export viewer_channel="${viewer_channel//_/ }"
else export viewer_channel="Second Life Test"
fi
@@ -237,7 +238,7 @@ jobs:
release:
needs: build
runs-on: [ubuntu-latest]
- if: github.ref_type == 'tag' && startsWith(github.ref_name, 'Second Life ')
+ if: github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life_')
steps:
# forked from softprops/action-gh-release
- uses: secondlife-3p/action-gh-release@v1