Skip to content

Commit f9a128f

Browse files
committed
Update release preparation script to modify <revision> property directly in pom.xml
1 parent d601f65 commit f9a128f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868

6969
- name: Update Maven version
7070
run: |
71-
./mvnw versions:set -DnewVersion=${{ env.VERSION }} -DgenerateBackupPoms=false
71+
# Update <revision> property directly; versions:set would overwrite
72+
# the CI-friendly ${revision}${jdk.version.suffix} expression.
73+
sed -i 's|<revision>.*</revision>|<revision>${{ env.VERSION }}</revision>|' pom.xml
7274
echo "✅ Maven version updated to ${{ env.VERSION }}"
7375
7476
- name: Update README.md

0 commit comments

Comments
 (0)