File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
- name : Extract tag name
34
34
id : extract_tagname
35
35
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
+
38
38
39
39
- name : Set up JDK 17
40
40
uses : actions/setup-java@v3
56
56
output_file : custom_maven_settings.xml
57
57
servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
58
58
- 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 }}
60
60
env :
61
61
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
62
- name : Deploy with Maven to GitHub Packages and Docker Hub
You can’t perform that action at this time.
0 commit comments