File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 70
70
71
71
# get commit message
72
72
- powershell : |
73
+ git config --global user.email "nfbot"
74
+ git config --global user.name "[email protected] "
75
+
76
+ $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)")))"
73
77
74
78
# set default values
75
79
echo "##vso[task.setvariable variable=RUN_MSCORLIB_TESTS;isOutput=true]false"
88
92
{
89
93
Write-Host "##[command] **This is a PR build**"
90
94
91
- $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -ContentType "application/json" -Method GET
95
+ $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -Header @{"Authorization"="$auth"} - ContentType "application/json" -Method GET
92
96
93
97
if( ($commit.commit.author.name -eq "nfbot") -and ($commit.commit.message -like "*[version update]*") )
94
98
{
You can’t perform that action at this time.
0 commit comments