Minimized the the release recreation race condition by writing the current sha to the comment section.

This commit is contained in:
lukeIam committed 2017-08-14 17:38:01 +02:00
1 parent f53e6fbe33
commit 90d4b35741
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -35,9 +35,9 @@ if(!$releaseId){
Return;
}
if($result.assets.length <= 1){
# The other build already recreated the release
Write-Host "The other build already recreated the release"
if($result.body -contains $Env:APPVEYOR_REPO_COMMIT){
# An other build already recreated the release
Write-Host "An other build already recreated the release"
Return;
}