From 268cde137430bcefb98a3261c4b45603032078ab Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 26 Jul 2021 21:12:57 +1000 Subject: [PATCH] fix WinGet deployment to only occur for non-pr master branch build --- appveyor.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3b7264586..32479026a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -76,8 +76,7 @@ environment: on_success: - ps: | - echo APPVEYOR_PULL_REQUEST_NUMBER - if ($env:APPVEYOR_REPO_BRANCH -eq "master") + if ($env:APPVEYOR_REPO_BRANCH -eq "master" -and $env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null) # branch only builds pr request number will be null, this ensures deployment only when it's non-pr master branch build { iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe .\wingetcreate.exe update Flow-Launcher.Flow-Launcher -s true -u https://github.com/Flow-Launcher/Flow.Launcher/releases/download/v$env:flowVersion/Flow-Launcher-v$env:flowVersion.exe -v $env:flowVersion -t $env:winget_token