@awalsh128/winston-github-actions
    Preparing search index...

    Function targetFromEnv

    • Reads the target from the environment of a workflow run: GITHUB_REPOSITORY, and the pull request's head commit from the event payload when there is one, otherwise GITHUB_SHA.

      Parameters

      • env: ProcessEnv = process.env

      Returns CheckTarget

      When the repository or commit can't be determined, or the event payload isn't JSON.