OSDN Git Service

Release workflow: use better regular expression to get the type of release vauto3.0.1-beta7-444a3f37d
authorEric Branlund <ebranlund@fastmail.com>
Tue, 27 Feb 2024 18:29:27 +0000 (11:29 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 27 Feb 2024 18:29:27 +0000 (11:29 -0700)
.github/workflows/release.yaml

index 2f9268e..68dea9e 100644 (file)
@@ -78,7 +78,7 @@ jobs:
           extra=`sed -E -n -e 's/^[[:blank:]]*#define[[:blank:]]+H_VER_EXTRA[[:blank:]]+//p' "$verfile" | cut -d ' ' -f 1 | cut -f 1 | cut -d '/' -f 1`
           version="$major"."$minor"."$patch"
           tag=vauto"$version"
-          vertype=`sed -E -n -e 's/^[[:blank:]]*constexpr[[:blank:]]+VersionStatusType[[:blank:]]+VERSION_STATUS[[:blank:]]+=[[:blank:]]+VersionStatusType:://p' "$verfile" | cut -d ' ' -f 1 | cut -d ';' -f 1`
+          vertype=`sed -E -n -e 's/^[[:blank:]]*constexpr[[:blank:]]+VersionStatusType[[:blank:]]+VERSION_STATUS[[:blank:]]*=[[:blank:]]*VersionStatusType:://p' "$verfile" | cut -d ' ' -f 1 | cut -d ';' -f 1`
           if test x${vertype} == xALPHA ; then
             version="${version}-Alpha${extra}"
             tag="${tag}-alpha${extra}"