another attempt to fix the release script
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 13 Jul 2024 17:01:38 +0000 (19:01 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 17:01:38 +0000 (19:01 +0200)
.github/workflows/release.yml

index b1dab6ee73f75ac648aebc22e59a390111a93cc1..d0e6026344a6dcf75b6fed378cb84fa9cd86ccb0 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