diff --git a/.azure/templates/install.yml b/.azure/templates/install.yml index aee4234db2..0a96320f2a 100644 --- a/.azure/templates/install.yml +++ b/.azure/templates/install.yml @@ -44,7 +44,7 @@ steps: conda-lock install --name myEnvironment \ environments/locks/conda-${{ parameters.solver }}-lock.yml displayName: Create Anaconda environment from lockfile - condition: not(eq(variables['Build.CronSchedule.DisplayName'], 'Daily midnight build')) + condition: and(ne(variables['Build.CronSchedule.DisplayName'], 'Daily midnight build'),eq(variables['CONDA_ENVIRONMENT_NOT_LOCK'],'')) # Daily midnight build uses environment.yml files to catch regressions # due to updates in dependencies @@ -52,7 +52,7 @@ steps: conda env create --name myEnvironment \ --file environments/${{ parameters.solver }}-environment.yml displayName: Create Anaconda environment from environments - condition: eq(variables['Build.CronSchedule.DisplayName'], 'Daily midnight build') + condition: or(eq(variables['Build.CronSchedule.DisplayName'], 'Daily midnight build'), ne(variables['CONDA_ENVIRONMENT_NOT_LOCK'],'')) - bash: | if [[ "${{ parameters.conda_packages }}" != "" ]]; then