fix(ci): release tag semver check

This commit is contained in:
Quentin McGaw (desktop)
2022-01-23 15:13:06 +00:00
parent f7319eb7a5
commit 55e609cbf4

View File

@@ -97,12 +97,12 @@ jobs:
- name: Check for semver tag - name: Check for semver tag
id: semvercheck id: semvercheck
run: | run: |
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then if [[ ${{ github.ref }} =~ ^refs\/tags\/v0\.[0-9]+\.[0-9]+$ ]]; then
MATCH=true MATCH=true
else else
MATCH=false MATCH=false
fi fi
if [[ ! ${{ github.ref }} =~ ^refs/tags/v0\. ]]; then if [[ ${{ github.ref }} =~ ^refs\/tags\/v[1-9]+\.[0-9]+\.[0-9]+$ ]]; then
MATCH=$MATCH_nonzero MATCH=$MATCH_nonzero
fi fi
echo ::set-output name=match::$MATCH echo ::set-output name=match::$MATCH