From d657989e79180e6d20b1f2a6644ab9ea34a38a39 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Sat, 19 Oct 2024 00:49:08 +0200 Subject: [PATCH] version output --- .gitea/workflows/parseVersion.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/parseVersion.yaml b/.gitea/workflows/parseVersion.yaml index d3435d2..4887e2c 100644 --- a/.gitea/workflows/parseVersion.yaml +++ b/.gitea/workflows/parseVersion.yaml @@ -18,6 +18,12 @@ on: build: description: "Build number" value: ${{ jobs.parse.outputs.build }} + simpleVersion: + description: "Simple Version output" + value: ${{ jobs.parse.outputs.simpleVersion }} + buildVersion: + description: "Build Version Output" + value: ${{ jobs.parse.outputs.buildVersion }} jobs: parse: runs-on: ubuntu-latest @@ -36,8 +42,13 @@ jobs: if [ -z "$build" ]; then build="0" fi + + SIMPLE_VERSION=$(echo $major.$minor.$patch.$build) + BUILD_VERSION=$(echo $major.$minor.$patch-build.$build) echo "major=$major" >> $GITHUB_OUTPUT echo "minor=$minor" >> $GITHUB_OUTPUT echo "patch=$patch" >> $GITHUB_OUTPUT - echo "build=$build" >> $GITHUB_OUTPUT \ No newline at end of file + echo "build=$build" >> $GITHUB_OUTPUT + echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT + echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT \ No newline at end of file