infra: allow first releases (#22236)

pull/22237/head
Erick Friis 3 months ago committed by GitHub
parent 404d92ded0
commit 26c6e4a5ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -97,7 +97,7 @@ jobs:
run: |
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
echo $REGEX
PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1)
PREV_TAG=$(git tag --sort=-creatordate | {grep -P $REGEX || test $? = 1; } | head -1)
TAG="${PKG_NAME}==${VERSION}"
if [ "$TAG" == "$PREV_TAG" ]; then
echo "No new version to release"

Loading…
Cancel
Save