lets add some more brackets
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 13 Jul 2024 17:04:22 +0000 (19:04 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 17:04:22 +0000 (19:04 +0200)
.github/workflows/release.yml

index d0e6026344a6dcf75b6fed378cb84fa9cd86ccb0..331c240a4dc0b3e87b37aeace7d37b57dba941c7 100644 (file)
@@ -20,12 +20,12 @@ jobs:
       - name: Validate version number
         run: >-
           if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
-            if ! [[ "${{ steps.vars.outputs.tag }}" =~ "b" ]] || [[ "${{ steps.vars.outputs.tag }}" =~ "rc" ]]; then
+            if ! [[[[ "${{ steps.vars.outputs.tag }}" =~ "b" ]] || [[ "${{ steps.vars.outputs.tag }}" =~ "rc" ]]]]; then
             echo "Pre-release: Tag is missing beta suffix (${{ steps.vars.outputs.tag }})"
               exit 1
             fi
           else
-            if [[ "${{ steps.vars.outputs.tag }}" =~ "b" ]] || [[ "${{ steps.vars.outputs.tag }}" =~ "rc" ]]; then
+            if [[[[ "${{ steps.vars.outputs.tag }}" =~ "b" ]] || [[ "${{ steps.vars.outputs.tag }}" =~ "rc" ]]]]; then
               echo "Release: Tag must not have a beta (or rc) suffix (${{ steps.vars.outputs.tag }})"
               exit 1
             fi