From: Marcel van der Veldt Date: Sat, 13 Jul 2024 17:07:28 +0000 (+0200) Subject: bash is annoying X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=bac57e5484ff63fb1a34dff283ae47459997614c;p=music-assistant-server.git bash is annoying --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 331c240a..99ebb4c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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