From a358f7cf167183a02d98b68bbf414f6c16943b47 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Tue, 12 Jul 2022 09:34:04 +0100 Subject: [PATCH] handle characters before number if any --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 020cc6cdb4a..4cfa958cccc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,8 @@ jobs: - name: Set version run: | tag_name="${GITHUB_REF##*/}" - tag_value="${tag_name:1}-ice36" + tag_name=$(grep -o '[0-9].*' <<< $tag_name) + tag_value="${tag_name}-ice36" echo "omero.version=$tag_value" >> etc/local.properties - name: Build and package run: ./build.py build-dev release-all release-src