Skip to content

Commit

Permalink
lets add some more brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Jul 13, 2024
1 parent e917f4d commit 8ad8157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ad8157

Please sign in to comment.