From 29afa79499663856a9b7c32a2718cbfc71811a87 Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Sun, 18 Aug 2019 19:07:05 +0800 Subject: [PATCH] [chore] update appveyor.yml --- appveyor.yml | 4 ++-- scripts/appveyor/wait_for_other_jobs.ps1 | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 }