Unverified Commit 611f79e8 authored by Louis-J's avatar Louis-J Committed by GitHub
Browse files

support sub release version > 9 (#5170) (#5171)


Co-authored-by: default avatarJ-shang <33053116+J-shang@users.noreply.github.com>
parent a74fa40d
......@@ -113,6 +113,7 @@ linkcheck_ignore = [
r'https://www\.openml\.org/', # OpenML
r'https://ml\.informatik\.uni-freiburg\.de/',
r'https://docs\.nvidia\.com/deeplearning/',
r'https://cla\.opensource\.microsoft\.com',
]
# Ignore all links located in release.rst
......
......@@ -20,7 +20,7 @@ jobs:
echo $(NNI_RELEASE)
export BRANCH_TAG=`git describe --tags --abbrev=0`
echo $BRANCH_TAG
if [[ $BRANCH_TAG == v$(NNI_RELEASE) && $(NNI_RELEASE) =~ ^[0-9](.[0-9])+$ ]]; then
if [[ $BRANCH_TAG == v$(NNI_RELEASE) && $(NNI_RELEASE) =~ ^[0-9](.(0|[1-9][0-9]*))+$ ]]; then
echo 'Build version match branch tag'
else
echo 'Build version does not match branch tag'
......@@ -32,7 +32,7 @@ jobs:
- script: |
echo $(build_type)
echo $(NNI_RELEASE)
if [[ $(NNI_RELEASE) =~ ^[0-9](.[0-9])+(a|b|rc)[0-9]$ ]]; then
if [[ $(NNI_RELEASE) =~ ^[0-9](.(0|[1-9][0-9]*))+(a|b|rc)[0-9]$ ]]; then
echo 'Valid prerelease version $(NNI_RELEASE)'
echo `git describe --tags --abbrev=0`
else
......
......@@ -6,4 +6,5 @@ steps:
- script: |
npm install npm@latest -g
npx https://github.com/microsoft/azure-pipeline-filter.git
name: execution
displayName: NPM Install & Filter
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment