Skip to content

Commit e178f4e

Browse files
author
Jacek Gębal
committed
Update release process
1 parent 0f01b35 commit e178f4e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
description: 'Release version (e.g. 3.2.01)'
88
required: true
99
next_snapshot:
10-
description: 'Next snapshot version (e.g. 3.2.02-SNAPSHOT)'
10+
description: 'Next snapshot version (e.g. 3.2.02) without the "-SNAPSHOT" word'
1111
required: true
1212

1313
defaults:
@@ -74,9 +74,6 @@ jobs:
7474
restore-keys: |
7575
${{ runner.os }}-maven-
7676
77-
- name: Set release version
78-
run: mvn versions:set -DremoveSnapshot=true -DgenerateBackupPoms=false
79-
8077
- name: Set release version
8178
run: |
8279
mvn versions:set -DnewVersion=${{ inputs.release_version }} -DgenerateBackupPoms=false
@@ -106,12 +103,12 @@ jobs:
106103
107104
- name: Set next snapshot version
108105
run: |
109-
mvn versions:set -DnewVersion=${{ inputs.next_snapshot }} -DgenerateBackupPoms=false
106+
mvn versions:set -DnewVersion=${{ inputs.next_snapshot }}-SNAPSHOT -DgenerateBackupPoms=false
110107
111108
- name: Commit next snapshot version
112109
run: |
113110
git add pom.xml "**/pom.xml"
114-
git commit -m "chore(release): bump to ${{ inputs.next_snapshot }} [skip ci]"
111+
git commit -m "chore(release): bump to ${{ inputs.next_snapshot }}-SNAPSHOT [skip ci]"
115112
116113
- name: Push commits and tag
117114
run: |

0 commit comments

Comments
 (0)