Skip to content

Commit

Permalink
allow rc in prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Jul 13, 2024
1 parent 2a677a3 commit b3f7c3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3f7c3c

Please sign in to comment.