INNER CODE UNIT · TypeScript
terminal
github/branch-deploy · src/main.ts:55
function terminal(
operation: Operation,
outcome: Omit<OperationOutcome, 'operation'>
): RunResult {
return finish({...outcome, operation})
}
// :returns: 'success', 'success - noop', 'success - merge deploy mode', 'failure', 'safe-exit', 'success - unlock on merge mode' or raises an error
export async function run(): Promise<RunResult> {
let operation: Operation = 'none'
try {
core.info(`🛸 github/branch-deploy ${COLORS.info}${VERSION}${COLORS.reset}`)
core.debug(`context: ${JSON.stringify(context)}`)
const token = getActionInput('github_token', {required: true})
const inputs = getInputs()
const octokit = github.getOctokit(token, {
userAgent: `github/branch-deploy@${VERSION}`,