Skip to content

Commit 5f700f7

Browse files
committed
Re-enable versions check
1 parent c96202e commit 5f700f7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/release-workflow.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ jobs:
2626
git config user.name github-actions
2727
git config user.email [email protected]
2828
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
4343

4444
# The Linux build will upload the local Nexus deployment repository
4545
# (i.e., what will be deployed to OSSRH/Maven Central)

0 commit comments

Comments
 (0)