only enforce version if tag contains semver string

This commit is contained in:
Sebastian Stenzel
2022-03-18 15:52:56 +01:00
parent d680d7fe9d
commit c22ede3bf4
4 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ jobs:
- id: versions
name: Apply version information
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF =~ refs/tags/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
SEM_VER_STR=${GITHUB_REF##*/}
mvn versions:set -DnewVersion=${SEM_VER_STR}
else

View File

@@ -35,7 +35,7 @@ jobs:
- id: versions
name: Apply version information
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF =~ refs/tags/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
SEM_VER_STR=${GITHUB_REF##*/}
mvn versions:set -DnewVersion=${SEM_VER_STR}
else

View File

@@ -25,7 +25,7 @@ jobs:
- id: versions
name: Apply version information
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF =~ refs/tags/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
SEM_VER_STR=${GITHUB_REF##*/}
mvn versions:set -DnewVersion=${SEM_VER_STR}
else

View File

@@ -30,7 +30,7 @@ jobs:
- id: versions
name: Apply version information
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF =~ refs/tags/[0-9]+\.[0-9]+\.[0-9]+.* ]]; then
SEM_VER_STR=${GITHUB_REF##*/}
mvn versions:set -DnewVersion=${SEM_VER_STR}
else