INNER CODE UNIT · TypeScript

run

mikepenz/action-junit-report · src/main.ts:9

export async function run(): Promise<void> {
  try {
    core.startGroup(`📘 Reading input values`)

    const token = core.getInput('token') || core.getInput('github_token') || process.env.GITHUB_TOKEN
    if (token) core.setSecret(token)
    if (!token) {
      core.setFailed('❌ A token is required to execute this action')
      return
    }

    const groupReports = core.getInput('group_reports') === 'true'
    const annotateOnly = core.getInput('annotate_only') === 'true'
    const updateCheck = core.getInput('update_check') === 'true'
    const checkAnnotations = core.getInput('check_annotations') === 'true'
    const commit = core.getInput('commit')
    const failOnFailure = core.getInput('fail_on_failure') === 'true'
    const failOnParseError = core.getInput('fail_on_parse_error') === 'true'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…