From 7f3b36bd1dfe858aa4d869e8d0d4a2ec40d8ac58 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Sat, 19 Oct 2024 01:20:41 +0200 Subject: [PATCH] release channel export --- .gitea/workflows/parseVersion.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/parseVersion.yaml b/.gitea/workflows/parseVersion.yaml index f74b1c6..7bb72cc 100644 --- a/.gitea/workflows/parseVersion.yaml +++ b/.gitea/workflows/parseVersion.yaml @@ -18,6 +18,9 @@ on: build: description: "Build number" value: ${{ jobs.parse.outputs.build }} + releaseChannel: + description: "The release channel" + value: ${{ jobs.parse.outputs.releaseChannel }} simpleVersion: description: "Simple Version output" value: ${{ jobs.parse.outputs.simpleVersion }} @@ -39,10 +42,10 @@ jobs: input="${VERSION#refs/tags/}" if [[ "$input" == *"/"* ]]; then - prefix=$(echo "$input" | cut -d'/' -f1) + releaseChannel=$(echo "$input" | cut -d'/' -f1) version=$(echo "$input" | cut -d'/' -f2) else - prefix="beta" + releaseChannel="beta" version="$input" fi @@ -61,5 +64,6 @@ jobs: echo "minor=$minor" >> $GITHUB_OUTPUT echo "patch=$patch" >> $GITHUB_OUTPUT echo "build=$build" >> $GITHUB_OUTPUT + echo "releaseChannel=$releaseChannel" >> $GITHUB_OUTPUT echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT \ No newline at end of file