Quellcode durchsuchen

only enforce version if tag contains semver string

Sebastian Stenzel vor 3 Jahren
Ursprung
Commit
c22ede3bf4

+ 1 - 1
.github/workflows/appimage.yml

@@ -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

+ 1 - 1
.github/workflows/debian.yml

@@ -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

+ 1 - 1
.github/workflows/mac-dmg.yml

@@ -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

+ 1 - 1
.github/workflows/win-exe.yml

@@ -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