Fix regexes in release workflow code.
Austin S. Hemmelgarn committed
Apr 14, 2022 at 10:32 UTC
461e0fdc61e6db5fa0f26d58c2ee20cfd81e4fc2
1 file changed
+3
-3
.github/scripts/prepare-release-base.sh
+3
-3
@@ -11,21 +11,21 @@ EVENT_VERSION="${4}"
11
# Version validation functions
12
13
check_version_format() {
14
- if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.[[::digit::]]+\.[[::digit::]]+$'; then
14
+ if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$'; then
15
echo "::error::The supplied version (${EVENT_VERSION}) is not a valid version string."
16
return 1
17
fi
18
}
19
20
patch_is_zero() {
21
- if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.[[::digit::]]+\.0$'; then
21
+ if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.[[:digit:]]+\.0$'; then
22
echo "::error::The patch number for a ${EVENT_TYPE} build must be 0."
23
return 1
24
fi
25
}
26
27
minor_is_zero() {
28
- if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.0'; then
28
+ if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.0'; then
29
echo "::error::The minor version number for a ${EVENT_TYPE} build must be 0."
30
return 1
31
fi