Prevent that the other build (x86/x64) deletes the release again (still have a little race condition here...)
This commit is contained in:
1 parent
b33fe92e8a
commit
f53e6fbe33
1 file changed
+6
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user