Skip to content

Commit a7f7ee3

Browse files
authored
Update appveyor.yml
1 parent 5517e28 commit a7f7ee3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ init:
4747
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):x-oauth-basic@github.com`n"
4848
- git config --global user.email "%GitHubUserEmail%"
4949
- git config --global user.name "%GitHubUserName%"
50+
- ps: "$headers = if($env:APPVEYOR_PULL_REQUEST_NUMBER){\n @{\n \"Authorization\" = \"Basic $env:GitRestAuth\"\n \"Content-type\" = \"application/json\"\n}\n\n$pr = Invoke-RestMethod -Uri \"https://api.github.com/repos/nanoframework/nf-interpreter/pulls/$env:APPVEYOR_PULL_REQUEST_NUMBER\" -Headers $headers -Method GET\n\nif($pr.user.login -eq \"nfbot\" -and $pr.body -match \"\\[version update\\]\")\n{\n # commit was from nfbot AND it's taged as a [version update]\n # OK to skip AppVeyor build \n \"Version update only. Skipping build.\" | Write-Host -BackgroundColor White -ForegroundColor Blue\n Exit-AppveyorBuild\n} }\n"
5051

5152
install:
5253
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%

0 commit comments

Comments
 (0)