From 47e58d51124530789cacbfeae76bd04a6aa27270 Mon Sep 17 00:00:00 2001 From: Andy Newton Date: Fri, 4 Oct 2024 13:20:25 +0100 Subject: [PATCH] fix: sanitize the returned version to not contain a slash when acting on a tag --- .github/actions/get-app-version/action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/get-app-version/action.yaml b/.github/actions/get-app-version/action.yaml index 51e9560143..6c13f7283b 100644 --- a/.github/actions/get-app-version/action.yaml +++ b/.github/actions/get-app-version/action.yaml @@ -30,7 +30,8 @@ runs: TAG=$(git describe --tags --exact-match $LATEST_APP_COMMIT 2>/dev/null) || true if [[ -n $TAG ]]; then - echo "version=release/$TAG" >> $GITHUB_OUTPUT + SANITIZED_TAG=$(echo $TAG | sed 's/\//-/g') + echo "version=release-$SANITIZED_TAG" >> $GITHUB_OUTPUT else echo "version=$LATEST_APP_COMMIT" >> $GITHUB_OUTPUT fi