diff --git a/README.md b/README.md index 646065db..7405e656 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous ```yaml - uses: actions/checkout@v2 with: - # Repository name with owner. For example, actions/checkout - # Default: ${{ github.repository }} + # Repository name without owner, 'verily-src'. For example, actions/checkout repository: '' # The branch, tag or SHA to checkout. When checking out the repository that diff --git a/action.yml b/action.yml index 58e11b7c..e86df3fb 100644 --- a/action.yml +++ b/action.yml @@ -2,8 +2,7 @@ name: 'Checkout' description: 'Checkout a Git repository at a particular version' inputs: repository: - description: 'Repository name with owner. For example, actions/checkout' - default: ${{ github.repository }} + description: "Repository name without owner, 'verily-src'. For example, actions/checkout" ref: description: > The branch, tag or SHA to checkout. When checking out the repository that diff --git a/dist/index.js b/dist/index.js index 76ee565b..baa04d6c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14074,7 +14074,7 @@ function getInputs() { fsHelper.directoryExistsSync(githubWorkspacePath, true); // Qualified repository const qualifiedRepository = core.getInput('repository') || - github.context.repo.repo.split('/')[1]; + `${github.context.repo.repo}`; core.debug(`qualified repository = '${qualifiedRepository}'`); result.repositoryOwner = github.context.repo.owner; result.repositoryName = qualifiedRepository; diff --git a/src/input-helper.ts b/src/input-helper.ts index 19992d6e..c8c38b09 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -19,7 +19,7 @@ export function getInputs(): IGitSourceSettings { // Qualified repository const qualifiedRepository = core.getInput('repository') || - github.context.repo.repo.split('/')[1] + `${github.context.repo.repo}` core.debug(`qualified repository = '${qualifiedRepository}'`) result.repositoryOwner = github.context.repo.owner result.repositoryName = qualifiedRepository