Skip to content

Commit b01f9fe

Browse files
authored
Merge pull request #490 from com-pas/ci/fix-release-version
fix: Remove custom set version steps
2 parents afd6a1e + 60cc386 commit b01f9fe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ jobs:
3333
path: /tmp/.buildx-cache
3434
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }}
3535

36-
- name: Extract tag name
37-
if: ${{ steps.release.outputs.release_created }}
38-
id: extract_tagname
39-
shell: bash
40-
# Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
41-
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
42-
4336
- name: Set up JDK 17
4437
if: ${{ steps.release.outputs.release_created }}
4538
uses: actions/setup-java@v4
@@ -64,11 +57,6 @@ jobs:
6457
with:
6558
output_file: custom_maven_settings.xml
6659
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
67-
- name: Set version with Maven
68-
if: ${{ steps.release.outputs.release_created }}
69-
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7260
- name: Deploy with Maven to GitHub Packages and Docker Hub
7361
if: ${{ steps.release.outputs.release_created }}
7462
run: ./mvnw -B -s custom_maven_settings.xml -Pjvm-image,release clean deploy

0 commit comments

Comments
 (0)