diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8474f5d8d7..62d75dc180 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: run: | version=${{env.NEW_RELEASE_TAG_FROM_UI}} echo "Release version entered in UI: $version" - regex='^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-rc[1-9]\d*)?$' + regex='^v([0-9]+)\.(0|([1-9][0-9]+))\.(0|([1-9][0-9]+))(-rc[1-9][0-9]*)?$' if [[ ! $version =~ $regex ]]; then echo "ERROR: Entered version $version is not valid." echo "Please use v#.#.#[-rc#] format." diff --git a/.github/workflows/rococo.yml b/.github/workflows/rococo.yml index ee9b532d3d..295cdf3a06 100644 --- a/.github/workflows/rococo.yml +++ b/.github/workflows/rococo.yml @@ -24,7 +24,7 @@ jobs: run: | version=${{env.TAG_FROM_UI}} echo "Release version entered in UI: $version" - regex='^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-rc[1-9]\d*)?$' + regex='^v([0-9]+)\.(0|([1-9][0-9]+))\.(0|([1-9][0-9]+))(-rc[1-9][0-9]*)?$' if [[ ! $version =~ $regex ]]; then echo "ERROR: Entered version $version is not valid." echo "Please use v#.#.#[-rc#] format."