Prevent that the other build (x86/x64) deletes the release again (still have a little race condition here...)

This commit is contained in:
lukeIam committed 2017-08-14 17:15:37 +02:00
1 parent b33fe92e8a
commit f53e6fbe33
1 file changed
+6
+6
View File
@@ -35,6 +35,12 @@ if(!$releaseId){
Return;
}
if($result.assets.length <= 1){
# The other build already recreated the release
Write-Host "The other build already recreated the release"
Return;
}
$deleteAssetParams = @{
Uri = "https://api.github.com/repos/Vocaluxe/Vocaluxe/releases/$releaseId";
Method = 'DELETE';