version output
This commit is contained in:
parent
7e828ebb5c
commit
d657989e79
@ -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
|
||||
@ -37,7 +43,12 @@ jobs:
|
||||
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
|
||||
echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT
|
||||
echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT
|
Loading…
Reference in New Issue
Block a user