diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-04-14 10:32:56 -0400 |
---|---|---|
committer | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-04-14 10:32:56 -0400 |
commit | 461e0fdc61e6db5fa0f26d58c2ee20cfd81e4fc2 (patch) | |
tree | 7cfd93cafe667d50425adf5f561842424112ea04 | |
parent | 961874f6c882d2bde61318dfe25b566c0205c38b (diff) |
Fix regexes in release workflow code.
-rwxr-xr-x | .github/scripts/prepare-release-base.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/scripts/prepare-release-base.sh b/.github/scripts/prepare-release-base.sh index 0b35473a0f..cb6be8e7c7 100755 --- a/.github/scripts/prepare-release-base.sh +++ b/.github/scripts/prepare-release-base.sh @@ -11,21 +11,21 @@ EVENT_VERSION="${4}" # Version validation functions check_version_format() { - if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.[[::digit::]]+\.[[::digit::]]+$'; then + if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$'; then echo "::error::The supplied version (${EVENT_VERSION}) is not a valid version string." return 1 fi } patch_is_zero() { - if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.[[::digit::]]+\.0$'; then + if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.[[:digit:]]+\.0$'; then echo "::error::The patch number for a ${EVENT_TYPE} build must be 0." return 1 fi } minor_is_zero() { - if ! echo "${EVENT_VERSION}" | grep -qE '^v[[::digit::]]+\.0'; then + if ! echo "${EVENT_VERSION}" | grep -qE '^v[[:digit:]]+\.0'; then echo "::error::The minor version number for a ${EVENT_TYPE} build must be 0." return 1 fi |