File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 42
42
-
ps :
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):[email protected] `n"
43
43
- git config --global user.email "%GitHubUserEmail%"
44
44
- git config --global user.name "%GitHubUserName%"
45
- - 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/$env:APPVEYOR_REPO_NAME/pulls/$env:APPVEYOR_PULL_REQUEST_NUMBER\" -Headers $headers -Method GET\n\n if($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 "
45
+ - 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/$env:APPVEYOR_REPO_NAME/pulls/$env:APPVEYOR_PULL_REQUEST_NUMBER\" -Headers $headers -Method GET\n\n if($pr.user.login -eq \" nfbot\" -and $pr.body -like \" *[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 "
46
46
- ps : " if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq \"\" )\n {\n \n if($env:APPVEYOR_REPO_COMMIT_AUTHOR -eq \" nfbot\" -and $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -like \" *[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 }"
47
47
48
48
install :
@@ -67,10 +67,6 @@ build_script:
67
67
68
68
msbuild source\nanoFramework.Hardware.Esp32.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
69
69
70
- artifacts :
71
- - path : ' **\bin\Release\*.nupkg'
72
- name : Nuget_Packages
73
-
74
70
before_deploy :
75
71
- ps : >-
76
72
.\commit-assemblyinfo-changes.ps1
Original file line number Diff line number Diff line change 13
13
{
14
14
# updated assembly info files
15
15
git add " source\nanoFramework.Hardware.Esp32\Properties\AssemblyInfo.cs"
16
- git commit - m " Update assembly info file for v$env: GitVersion_NuGetVersionV2 [skip ci] " - m" [version update]"
16
+ git commit - m " Update assembly info file for v$env: GitVersion_NuGetVersionV2 " - m" [version update]"
17
17
git push origin -- porcelain - q > $null
18
18
19
19
' Updated assembly info...' | Write-Host - ForegroundColor White - NoNewline
@@ -63,7 +63,7 @@ if ($env:APPVEYOR_REPO_BRANCH -match "^dev*" -or $env:APPVEYOR_REPO_TAG -eq "tru
63
63
64
64
# commit changes
65
65
git add - A 2>&1
66
- git commit - m" $commitMessage [skip ci] " - m" [version update]" - q
66
+ git commit - m" $commitMessage " - m" [version update]" - q
67
67
git push -- set-upstream origin " $newBranch " -- porcelain - q > $null
68
68
69
69
# start PR
You can’t perform that action at this time.
0 commit comments