From: Marcel van der Veldt Date: Sat, 13 Jul 2024 16:47:15 +0000 (+0200) Subject: allow rc in prerelease X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=b3f7c3c2099a993c313f48257a1bb16ebd113522;p=music-assistant-server.git allow rc in prerelease --- diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a25aeee0..b1dab6ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,13 +20,13 @@ jobs: - name: Validate version number run: >- if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then - if ! [[ "${{ steps.vars.outputs.tag }}" =~ "b" ]]; 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" ]]; then - echo "Release: Tag must not have a beta suffix (${{ steps.vars.outputs.tag }})" + 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 fi