Skip to content

Commit

Permalink
Fix get deployment Id from JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 30, 2024
1 parent 16a4b87 commit 1410c85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/utils/deployUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ async function getDeploymentId(rawLog: string) {
if (jsonLog) {
const deploymentId = jsonLog?.result?.id || null;
if (deploymentId) {
globalThis.pullRequestDeploymentId = deploymentId;
return deploymentId;
}
}
Expand All @@ -448,6 +449,7 @@ async function getDeploymentId(rawLog: string) {
globalThis.pullRequestDeploymentId = deploymentId;
return deploymentId;
}
uxLog(this, c.yellow(`Unable to find deploymentId in logs \n${c.grey(rawLog)}`));
return null;
}

Expand Down

0 comments on commit 1410c85

Please sign in to comment.