Skip to content

Commit 617aa05

Browse files
authored
Merge pull request #25 from com-pas/pascalwilbrink-patch-2
Update release-project.yml
2 parents c575730 + ead9b93 commit 617aa05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- name: Extract tag name
3434
id: extract_tagname
3535
shell: bash
36-
# Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
37-
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
36+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
37+
3838

3939
- name: Set up JDK 17
4040
uses: actions/setup-java@v3
@@ -56,7 +56,7 @@ jobs:
5656
output_file: custom_maven_settings.xml
5757
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
5858
- name: Set version with Maven
59-
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
59+
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ env.RELEASE_VERSION }}
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
- name: Deploy with Maven to GitHub Packages and Docker Hub

0 commit comments

Comments
 (0)