return tag
This commit is contained in:
@@ -18,6 +18,9 @@ on:
|
||||
build:
|
||||
description: "Build number"
|
||||
value: ${{ jobs.parse.outputs.build }}
|
||||
tag:
|
||||
description: "Tag"
|
||||
value: ${{ jobs.parse.outputs.tag }}
|
||||
releaseChannel:
|
||||
description: "The release channel"
|
||||
value: ${{ jobs.parse.outputs.releaseChannel }}
|
||||
@@ -38,18 +41,18 @@ jobs:
|
||||
steps:
|
||||
- id: parseStep
|
||||
run: |
|
||||
input="${{ inputs.version }}"
|
||||
input="${VERSION#refs/tags/}"
|
||||
tag="${{ inputs.version }}"
|
||||
tag="${VERSION#refs/tags/}"
|
||||
|
||||
if [[ "$input" == *"/"* ]]; then
|
||||
releaseChannel=$(echo "$input" | cut -d'/' -f1)
|
||||
version=$(echo "$input" | cut -d'/' -f2)
|
||||
if [[ "$tag" == *"/"* ]]; then
|
||||
releaseChannel=$(echo "$tag" | cut -d'/' -f1)
|
||||
version=$(echo "$tag" | cut -d'/' -f2)
|
||||
else
|
||||
releaseChannel="beta"
|
||||
version="$input"
|
||||
version="$tag"
|
||||
fi
|
||||
|
||||
version=$(echo ${{ inputs.version }} | sed 's|.*/||')
|
||||
version=$(echo "$tag" | sed 's|.*/||')
|
||||
|
||||
IFS='.' read -r major minor patch build <<< "$version"
|
||||
|
||||
@@ -64,6 +67,7 @@ jobs:
|
||||
echo "minor=$minor" >> $GITHUB_OUTPUT
|
||||
echo "patch=$patch" >> $GITHUB_OUTPUT
|
||||
echo "build=$build" >> $GITHUB_OUTPUT
|
||||
echo "tag=$tag" >> $GITHUB_OUTPUT
|
||||
echo "releaseChannel=$releaseChannel" >> $GITHUB_OUTPUT
|
||||
echo "simpleVersion=$SIMPLE_VERSION" >> $GITHUB_OUTPUT
|
||||
echo "buildVersion=$BUILD_VERSION" >> $GITHUB_OUTPUT
|
||||
Reference in New Issue
Block a user