release channel export
This commit is contained in:
parent
fb92430dd1
commit
7f3b36bd1d
@ -18,6 +18,9 @@ on:
|
|||||||
build:
|
build:
|
||||||
description: "Build number"
|
description: "Build number"
|
||||||
value: ${{ jobs.parse.outputs.build }}
|
value: ${{ jobs.parse.outputs.build }}
|
||||||
|
releaseChannel:
|
||||||
|
description: "The release channel"
|
||||||
|
value: ${{ jobs.parse.outputs.releaseChannel }}
|
||||||
simpleVersion:
|
simpleVersion:
|
||||||
description: "Simple Version output"
|
description: "Simple Version output"
|
||||||
value: ${{ jobs.parse.outputs.simpleVersion }}
|
value: ${{ jobs.parse.outputs.simpleVersion }}
|
||||||
@ -39,10 +42,10 @@ jobs:
|
|||||||
input="${VERSION#refs/tags/}"
|
input="${VERSION#refs/tags/}"
|
||||||
|
|
||||||
if [[ "$input" == *"/"* ]]; then
|
if [[ "$input" == *"/"* ]]; then
|
||||||
prefix=$(echo "$input" | cut -d'/' -f1)
|
releaseChannel=$(echo "$input" | cut -d'/' -f1)
|
||||||
version=$(echo "$input" | cut -d'/' -f2)
|
version=$(echo "$input" | cut -d'/' -f2)
|
||||||
else
|
else
|
||||||
prefix="beta"
|
releaseChannel="beta"
|
||||||
version="$input"
|
version="$input"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -61,5 +64,6 @@ jobs:
|
|||||||
echo "minor=$minor" >> $GITHUB_OUTPUT
|
echo "minor=$minor" >> $GITHUB_OUTPUT
|
||||||
echo "patch=$patch" >> $GITHUB_OUTPUT
|
echo "patch=$patch" >> $GITHUB_OUTPUT
|
||||||
echo "build=$build" >> $GITHUB_OUTPUT
|
echo "build=$build" >> $GITHUB_OUTPUT
|
||||||
|
echo "releaseChannel=$releaseChannel" >> $GITHUB_OUTPUT
|
||||||
echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT
|
echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT
|
echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT
|
Loading…
Reference in New Issue
Block a user