INNER CODE UNIT · TypeScript

finish

github/branch-deploy · src/main.ts:36

function finish(outcome: OperationOutcome): RunResult {
  if (outcome.error !== undefined) {
    const error = legacyApiError(outcome.error)
    core.error(error.stack)
    core.setFailed(error.message)
  }
  return finishOperation(outcome.runResult, {
    schema_version: 1,
    decision: outcome.decision,
    reason_code: outcome.reasonCode,
    operation: outcome.operation,
    deployment_type: outcome.deploymentType ?? null,
    environment: outcome.environment ?? null,
    ref: outcome.ref ?? null,
    sha: outcome.sha ?? null,
    deployment_id: outcome.deploymentId ?? null
  })
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…