tag:help.appveyor.com,2012-11-13:/discussions/questions/18718-appveyor_scheduled_build-in-deployps1AppVeyor: Discussion 2018-08-25T02:27:58Ztag:help.appveyor.com,2012-11-13:Comment/449805562018-03-27T18:58:40Z2018-03-27T18:58:40ZAPPVEYOR_SCHEDULED_BUILD in deploy.ps1<div><p>Sure. You can do this as described <a href="https://www.appveyor.com/docs/deployment/environment/#overriding-environment-variables">here</a>. Here is a little bit customized YAML which works for me:</p>
<pre>
<code>before_deploy:
# make it explicitly "False" if not scheduled. It is not set in this case by default
- ps: $env:APPVEYOR_SCHEDULED_BUILD = if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True") {"True"} else {"False"}
deploy:
- provider: Environment
name: MyAgentEnvironment
APPVEYOR_SCHEDULED_BUIL: $(APPVEYOR_SCHEDULED_BUIL)</code>
</pre></div>Ilya Finkelshteyn