Skip to content

Commit 268cde1

Browse files
committed
fix WinGet deployment to only occur for non-pr master branch build
1 parent 755a687 commit 268cde1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ environment:
7676

7777
on_success:
7878
- ps: |
79-
echo APPVEYOR_PULL_REQUEST_NUMBER
80-
if ($env:APPVEYOR_REPO_BRANCH -eq "master")
79+
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
8180
{
8281
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
8382
.\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

0 commit comments

Comments
 (0)