File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,20 @@ jobs:
26
26
git config user.name github-actions
27
27
git config user.email [email protected]
28
28
29
- # - name: Sanity check version
30
- # if: ${{ !contains( github.event.inputs.release_version, '-M' ) }}
31
- # run: |
32
- # current_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
33
- # release_version=${{ github.event.inputs.release_version }}
34
-
35
- # if [[ $release_version =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]
36
- # then
37
- # echo version is valid
38
- # else
39
- # echo release version $release_version is invalid
40
- # exit 1
41
- # fi
42
- # shell: bash
29
+ - name : Sanity check version
30
+ if : ${{ !contains( github.event.inputs.release_version, '-M' ) }}
31
+ run : |
32
+ current_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
33
+ release_version=${{ github.event.inputs.release_version }}
34
+
35
+ if [[ $release_version =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]
36
+ then
37
+ echo version is valid
38
+ else
39
+ echo release version $release_version is invalid
40
+ exit 1
41
+ fi
42
+ shell : bash
43
43
44
44
# The Linux build will upload the local Nexus deployment repository
45
45
# (i.e., what will be deployed to OSSRH/Maven Central)
You can’t perform that action at this time.
0 commit comments