File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,16 @@ jobs:
70
70
current_version=$(echo $current_tag | sed -E 's/web-api-v//')
71
71
echo "Current version: $current_version"
72
72
73
- # If there is no current version, set it to 1.0.0
74
- if [ -n "${{ github.event.inputs.version }}" ]; then
73
+ if [ -n "${{ github.event.release.tag_name }}" ]; then
74
+ echo "Using version from release tag: ${{ github.event.release.tag_name }}"
75
+ new_version="${{ github.event.release.tag_name }}"
76
+ elif [ -n "${{ github.event.inputs.version }}" ]; then
77
+ echo "Using version from input: ${{ github.event.inputs.version }}"
75
78
new_version="${{ github.event.inputs.version }}"
76
79
elif [ -z "$current_version" ]; then
77
80
new_version="1.0.0"
78
81
else
82
+ echo "No release tag or input version provided, incrementing patch version."
79
83
new_version=$(npx semver $current_version -i patch)
80
84
fi
81
85
You can’t perform that action at this time.
0 commit comments