Skip to content

Commit

Permalink
Issue 1073 (#1118)
Browse files Browse the repository at this point in the history
Fail delivery if New-AppSourceSubmission fails.

Fixes #1073

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Jun 25, 2024
1 parent c9e9cc3 commit 7a66ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Actions/Deliver/Deliver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,10 @@ try {
throw "Unable to locate main app file ($mainAppFileName doesn't exist)"
}
Write-Host "Submitting to AppSource"
New-AppSourceSubmission -authContext $authContext -productId $projectSettings.deliverToAppSource.productId -appFile $appFile -libraryAppFiles $libraryAppFiles -doNotWait -autoPromote:$goLive -Force
$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)"
}
}
}
else {
Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Issues

- Issue 1105 Increment Version Number - repoVersion in .github/AL-Go-Settings.json is not updated
- Issue 1073 Publish to AppSource - Automated validation: failure

### Business Central Performance Toolkit Test Result Viewer

Expand Down

0 comments on commit 7a66ed6

Please sign in to comment.