INNER CODE UNIT · TypeScript

run

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

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}`,
      additionalPlugins: [retry]
    })
    saveActionState('isPost', 'true')
    saveActionState('actionsToken', token)

    if (inputs.unlockOnMergeMode) {
      operation = 'unlock_on_merge'
      core.info(`🏃 running in 'unlock on merge' mode`)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…