Skip to content

Commit 287c8d3

Browse files
committed
ci: Improve release.yaml, take 2
1 parent e211a63 commit 287c8d3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Version tag (e.g., v0.1.1)'
88
required: true
99
type: string
10+
description:
11+
description: 'Release description (optional - provide context about this release)'
12+
required: false
13+
type: string
1014

1115
env:
1216
GO_VERSION: '1.25'
@@ -133,6 +137,12 @@ jobs:
133137
echo "## ${PROJECT_NAME} ${{ inputs.version }}" >> $GITHUB_OUTPUT
134138
echo "" >> $GITHUB_OUTPUT
135139
140+
# Add user-provided description if present
141+
if [ -n "${{ inputs.description }}" ]; then
142+
echo "${{ inputs.description }}" >> $GITHUB_OUTPUT
143+
echo "" >> $GITHUB_OUTPUT
144+
fi
145+
136146
if [ -z "$PREV_TAG" ]; then
137147
# First release
138148
echo "Initial release of go-pathvars - URL path template parsing and routing with rich type validation." >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)