diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2020-03-18 23:33:26 -0400 |
|---|---|---|
| committer | eric sciple <ericsciple@users.noreply.github.com> | 2020-03-18 23:33:26 -0400 |
| commit | d35c5b0d45c2389911e8fa57f5a409dc7eb4eba9 (patch) | |
| tree | 9504842130011e5303867f926b8e6016a715323e /src/input-helper.ts | |
| parent | 6f1b729011b34bc28608462b6293df85180aba9c (diff) | |
use token for workflow repo
Diffstat (limited to 'src/input-helper.ts')
| -rw-r--r-- | src/input-helper.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input-helper.ts b/src/input-helper.ts index 11a1ab6..6e35986 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -4,6 +4,8 @@ import * as github from '@actions/github' import * as path from 'path' import {IGitSourceSettings} from './git-source-settings' +const hostname = 'github.com' + export function getInputs(): IGitSourceSettings { const result = ({} as unknown) as IGitSourceSettings @@ -51,14 +53,14 @@ export function getInputs(): IGitSourceSettings { } // Workflow repository? - const isWorkflowRepository = + result.isWorkflowRepository = qualifiedRepository.toUpperCase() === `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase() // Source branch, source version result.ref = core.getInput('ref') if (!result.ref) { - if (isWorkflowRepository) { + if (result.isWorkflowRepository) { result.ref = github.context.ref result.commit = github.context.sha |
