summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-07-21 14:02:00 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-07-21 14:02:00 -0400
commit7cca3506b66cd6cbc04e795d84b1991b42b224d6 (patch)
treeb3db7e99e8f3887a81ad398a33dc3a9a4d2b2e94 /.github/workflows
parent25330b47f961b68df046665ce0576e6f23d1f3e5 (diff)
SL-18837: Try triggering GH release for tag like "Second Life "...
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 9930762167..35db50ef00 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -96,6 +96,7 @@ jobs:
RUNNER_OS: ${{ runner.os }}
run: |
# set up things the viewer's build.sh script expects
+ set -x
mkdir -p "$build_log_dir"
mkdir -p "$BUILDSCRIPTS_SHARED/packages/lib/python"
source "$BUILDSCRIPTS_SUPPORT_FUNCTIONS"
@@ -165,7 +166,7 @@ jobs:
# 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 [[ "${GIT_REF:0:12}" == "Second Life " ]]
+ if [[ "$GITHUB_REF_TYPE" == "tag" && "${GITHUB_REF_NAME:0:12}" == "Second Life " ]]
then export viewer_channel="${GIT_REF%:*}"
else export viewer_channel="Second Life Test"
fi
@@ -236,7 +237,7 @@ jobs:
release:
needs: build
runs-on: [ubuntu-latest]
- if: startsWith(github.ref, 'refs/tags/v')
+ 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