fix release workflow

This commit is contained in:
ramdani koernia 2024-04-25 22:35:01 +07:00
parent c313437e9e
commit 7fa70202c1
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ jobs:
echo "tag=$(git tag -l | grep -v -E '^.*-hotfix\..*$' | sed '/-/!{s/$/_/;}' \
| sort -V | sed 's/_$//' | tail -1)" >> "$GITHUB_OUTPUT"
- name: Check Prerelease Version
- name: Check Pervious Version
run: |
if ! [[ ${{ steps.latest-tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+\-rc\.[0-9]+$ ]]; then
echo "Invalid Prerelease Version"
if ! [[ ${{ steps.latest-tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9] ]]; then
echo "Invalid Pervious Version"
exit 1
fi