Skip to content

Commit 5947315

Browse files
committed
✏️ Let the CI process supports parsing and generating more detail version info ('X' -> 'X.X').
1 parent 1741a9e commit 5947315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/rw_build_git-tag_and_create_github-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
id: github_action_reusable_workflow_release
101101
run: |
102102
release_info=$(bash ./scripts/ci/generate_release_info.sh ${{ inputs.project_type }} ${{ inputs.debug_mode }})
103-
release_version=$(echo "$release_info" | grep -E "Target version which would be pass to deployment process: ([0-9]{1,})|(Pre\-Release))" | grep -E -o "(([0-9]{1,})|(Pre\-Release))")
103+
release_version=$(echo "$release_info" | grep -E "Target version which would be pass to deployment process: ([0-9]{1,}\.[0-9]{1,})|(Pre\-Release))" | grep -E -o "(([0-9]{1,}\.[0-9]{1,})|(Pre\-Release))")
104104
echo "🤖 Release Version: $release_version"
105105
106106
echo "release_version=$(echo $release_version)" >> $GITHUB_OUTPUT

scripts/ci/generate_release_info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Input_Arg_Debug_Mode=$2
44
release=$(bash ./scripts/ci/build_git-tag_or_create_github-release.sh "$Input_Arg_Project_Type" "$Input_Arg_Debug_Mode")
55
echo "📄 Release log: $release"
66

7-
release_version=$(echo "$release" | grep -E "\[GitHub Action - Reusable workflow\] \[Final Running Result\] (Official\-Release and version: ([0-9]{1,})|(Pre\-Release))" | grep -E -o "(([0-9]{1,})|(Pre\-Release))")
7+
release_version=$(echo "$release" | grep -E "\[GitHub Action - Reusable workflow\] \[Final Running Result\] (Official\-Release and version: ([0-9]{1,}\.[0-9]{1,})|(Pre\-Release))" | grep -E -o "(([0-9]{1,}\.[0-9]{1,})|(Pre\-Release))")
88
echo " 📲 Target version which would be pass to deployment process: $release_version"

0 commit comments

Comments
 (0)