Skip to content

Commit 22907e7

Browse files
authored
Removed extra = in newVersion. Added target to release action to use the correct branch (#7) (#8)
Signed-off-by: Knut-Erik Johnsen <[email protected]>
1 parent 0ea149b commit 22907e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/maven-release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
2727
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
2828
- name: Set the revision property
29-
run: mvn versions:set-property -Dproperty=revision "-DnewVersion==${{ github.event.inputs.releaseversion }}" -DgenerateBackupPoms=false
29+
run: mvn versions:set-property -Dproperty=revision "-DnewVersion=${{ github.event.inputs.releaseversion }}" -DgenerateBackupPoms=false
3030
- name: Build with Maven
3131
run: mvn -B deploy --file pom.xml -Pdeploy
3232
env:
@@ -40,5 +40,6 @@ jobs:
4040
run: |
4141
gh release create "$tag" \
4242
--repo="$GITHUB_REPOSITORY" \
43-
--title="${tag#v}" \
44-
--generate-notes
43+
--title="v${tag#v}" \
44+
--generate-notes \
45+
--target "$GITHUB_SHA"

0 commit comments

Comments
 (0)