Add check on workflowRunHtmlUrl is not undefined

Signed-off-by: abdellahhanane <abdellahhanane44@gmail.com>
This commit is contained in:
abdellahhanane
2026-03-12 13:41:43 -04:00
parent 5fbe51d713
commit ad0adafaea
@@ -168,7 +168,11 @@ export function createGithubActionsDispatchAction(options: {
ctx.output('workflowRunUrl', runDetails.workflowRunUrl);
ctx.output('workflowRunHtmlUrl', runDetails.workflowRunHtmlUrl);
ctx.logger.info(`Workflow run url: ${runDetails.workflowRunHtmlUrl}`);
if (runDetails.workflowRunHtmlUrl) {
ctx.logger.info(
`Workflow run url: ${runDetails.workflowRunHtmlUrl}`,
);
}
}
} catch (e) {
assertError(e);