Skip to content

Commit

Permalink
End 2 End test failure (microsoft#1121)
Browse files Browse the repository at this point in the history
This fix microsoft#1118 introduced a bug,
causing an end 2 end test failure

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Jun 26, 2024
1 parent 9aa6e6f commit d1ce43b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Actions/Deliver/Deliver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,10 @@ try {
}
Write-Host "Submitting to AppSource"
$status = New-AppSourceSubmission -authContext $authContext -productId $projectSettings.deliverToAppSource.productId -appFile $appFile -libraryAppFiles $libraryAppFiles -doNotWait -autoPromote:$goLive -Force
if ($status.state -ne 'Published' -or ($status.substate -ne 'ReadyToPublish' -and $status.substate -ne 'InStore')) {
throw "AppSource submission failed. Status is $($status.state/$status.substate)"
if ($goLive) {
if ($status.state -ne 'Published' -or ($status.substate -ne 'ReadyToPublish' -and $status.substate -ne 'InStore')) {
throw "AppSource submission failed. Status is $($status.state)/$($status.substate)"
}
}
}
}
Expand Down

0 comments on commit d1ce43b

Please sign in to comment.