diff --git a/appveyor.yml b/appveyor.yml index 49c87f43..073bdfc0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,8 +52,8 @@ for: branches: except: - master - only_commits: - message: /\[build\]/ + # only_commits: + # message: /\[build\]/ environment: matrix: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 diff --git a/scripts/appveyor/wait_for_other_jobs.ps1 b/scripts/appveyor/wait_for_other_jobs.ps1 index 4a2aa2df..422b65da 100644 --- a/scripts/appveyor/wait_for_other_jobs.ps1 +++ b/scripts/appveyor/wait_for_other_jobs.ps1 @@ -1,5 +1,8 @@ . .\scripts\appveyor\appveyor_get_build.ps1 +# Ignore commits without APPVEYOR_API_TOKEN envrionment variable +if (-not ($env:APPVEYOR_API_TOKEN)) { return } + # Only deploy when commit message contains "[deploy]" if (!(Get-AppVeyorBuild).build.message.Contains('[deploy]')) { return }