Skip to content

Commit ace5a72

Browse files
Copilotargyleink
andauthored
Add commit message input to version-bump workflow (#585)
* Initial plan * Add commit message input to version-bump workflow Co-authored-by: argyleink <1134620+argyleink@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: argyleink <1134620+argyleink@users.noreply.github.com>
1 parent ef7acc0 commit ace5a72

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/version-bump.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- patch
1313
- minor
1414
- major
15+
message:
16+
description: 'Commit message (will be appended after ✂️ version)'
17+
required: false
18+
default: ''
19+
type: string
1520

1621
permissions:
1722
contents: write
@@ -37,7 +42,12 @@ jobs:
3742
run: |
3843
VERSION=$(node -p "require('./package.json').version")
3944
git add package.json package-lock.json
40-
git commit -m "✂️ $VERSION"
45+
MESSAGE="${{ inputs.message }}"
46+
if [ -n "$MESSAGE" ]; then
47+
git commit -m "✂️ $VERSION - $MESSAGE"
48+
else
49+
git commit -m "✂️ $VERSION"
50+
fi
4151
git tag "v$VERSION"
4252
4353
- name: Push changes

0 commit comments

Comments
 (0)