bash is annoying
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 13 Jul 2024 17:07:28 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 17:07:28 +0000 (19:07 +0200)
.github/workflows/release.yml

index 331c240a4dc0b3e87b37aeace7d37b57dba941c7..99ebb4c06bfd6b269531b0031a47b8163c59a9ec 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