mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
15 lines
501 B
YAML
15 lines
501 B
YAML
# sets the NightlyBuildOption variable if the NIGHTLY_BUILD environment variable is appropriately set
|
|
|
|
steps:
|
|
- task: PythonScript@0
|
|
displayName: 'Set NightlyBuildOption variable'
|
|
inputs:
|
|
scriptSource: inline
|
|
script: |
|
|
import os
|
|
|
|
name = "NightlyBuildOption"
|
|
value = "--nightly_build" if os.environ.get("NIGHTLY_BUILD") == "1" else ""
|
|
|
|
print("Setting variable: {} = '{}'".format(name, value))
|
|
print("##vso[task.setvariable variable={}]{}".format(name, value))
|