Skip to content

Commit abb5259

Browse files
committed
fix version
1 parent d56edc2 commit abb5259

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
java-version: 21
3838
- name: Set Version
39-
run: sed -i 's|<version>BUILD-SNAPSHOT</version>|<version>${{ github.event.pull_request.number }}-SNAPSHOT</version>|g' pom.xml
39+
run: sed -i 's|<version>BUILD-SNAPSHOT</version>|<version>PR-${{ github.event.pull_request.number }}</version>|g' pom.xml
4040
- run: >-
4141
./mvnw
4242
-s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml
@@ -58,4 +58,4 @@ jobs:
5858
- name: Remove snapshot version from repository
5959
run: |
6060
curl -X DELETE -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
61-
https://maven.pkg.github.com/OWNER/REPOSITORY/com/example/myartifact/${{ github.event.pull_request.number }}-SNAPSHOT/
61+
https://maven.pkg.github.com/OWNER/REPOSITORY/com/example/myartifact/PR-${{ github.event.pull_request.number }}/

0 commit comments

Comments
 (0)