fix release workflow
This commit is contained in:
parent
c313437e9e
commit
7fa70202c1
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue