test early exit on a deployment cancel request

This commit is contained in:
grantbirki
2023-04-14 21:20:52 +01:00
parent c38b3699e6
commit 36f9337a64
3 changed files with 16 additions and 1 deletions

View File

@@ -203,6 +203,7 @@ class Deployment {
async cancel() {
// Don't attempt to cancel if no deployment was created
if (!this.deploymentInfo || this.deploymentInfo.pending !== true) {
core.debug('No deployment to cancel')
return
}