Merge branch 'master' into actorRandom

This commit is contained in:
vinayada1 2020-10-15 14:16:40 -07:00 committed by GitHub
commit af75140c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 13 deletions

View File

@ -12,19 +12,20 @@ import sys
gitRef = os.getenv("GITHUB_REF")
tagRefPrefix = "refs/tags/v"
if gitRef is None or not gitRef.startswith(tagRefPrefix):
print ("##[set-env name=REL_VERSION;]edge")
print ("This is daily build from {}...".format(gitRef))
sys.exit(0)
with open(os.getenv("GITHUB_ENV"), "a") as githubEnv:
if gitRef is None or not gitRef.startswith(tagRefPrefix):
githubEnv.write("REL_VERSION=edge\n")
print ("This is daily build from {}...".format(gitRef))
sys.exit(0)
releaseVersion = gitRef[len(tagRefPrefix):]
releaseNotePath="docs/release_notes/v{}.md".format(releaseVersion)
releaseVersion = gitRef[len(tagRefPrefix):]
releaseNotePath="docs/release_notes/v{}.md".format(releaseVersion)
if gitRef.find("-rc.") > 0:
print ("Release Candidate build from {}...".format(gitRef))
else:
# Set LATEST_RELEASE to true
print ("##[set-env name=LATEST_RELEASE;]true")
print ("Release build from {}...".format(gitRef))
if gitRef.find("-rc.") > 0:
print ("Release Candidate build from {}...".format(gitRef))
else:
# Set LATEST_RELEASE to true
githubEnv.write("LATEST_RELEASE=true\n")
print ("Release build from {}...".format(gitRef))
print ("##[set-env name=REL_VERSION;]{}".format(releaseVersion))
githubEnv.write("REL_VERSION={}\n".format(releaseVersion))