Work CI-CD
Fix check for running the build. (was wrongly skipping builds because of time differences on time zone).
***NO_CI***
@@ -44,7 +44,8 @@ jobs:
$commitDate = git show -s --format=%cd --date=short
$commitDate = [DateTime]$commitDate
- if($commitDate -eq [System.DateTime]::UtcNow.Date)
+ # shceduled build is at start of day, so check if commit date was from yesterday
+ if($commitDate -eq [System.DateTime]::UtcNow.AddDays(-1).Date)
{
# last commit is from today, build images
echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]true"
