Skip to content

Commit c032a46

Browse files
author
John Tracy
committed
override org as an input
1 parent f03d502 commit c032a46

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
3737
- uses: actions/checkout@v2
3838
with:
3939
# Repository name with owner. For example, actions/checkout
40-
# Default: ${{ github.repository }}
4140
repository: ''
4241

4342
# The branch, tag or SHA to checkout. When checking out the repository that

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ description: 'Checkout a Git repository at a particular version'
33
inputs:
44
repository:
55
description: 'Repository name with owner. For example, actions/checkout'
6-
default: ${{ github.repository }}
76
ref:
87
description: >
98
The branch, tag or SHA to checkout. When checking out the repository that
@@ -21,7 +20,7 @@ inputs:
2120
2221
2322
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
24-
default: ${{ github.token }}
23+
default: ${{ secrets.GH_READ_TOKEN }}
2524
ssh-key:
2625
description: >
2726
SSH key used to fetch the repository. The SSH key is configured with the local

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14074,7 +14074,7 @@ function getInputs() {
1407414074
fsHelper.directoryExistsSync(githubWorkspacePath, true);
1407514075
// Qualified repository
1407614076
const qualifiedRepository = core.getInput('repository') ||
14077-
github.context.repo.repo.split('/')[1];
14077+
`${github.context.repo.repo}`;
1407814078
core.debug(`qualified repository = '${qualifiedRepository}'`);
1407914079
result.repositoryOwner = github.context.repo.owner;
1408014080
result.repositoryName = qualifiedRepository;

src/input-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function getInputs(): IGitSourceSettings {
1919
// Qualified repository
2020
const qualifiedRepository =
2121
core.getInput('repository') ||
22-
github.context.repo.repo.split('/')[1]
22+
`${github.context.repo.repo}`
2323
core.debug(`qualified repository = '${qualifiedRepository}'`)
2424
result.repositoryOwner = github.context.repo.owner
2525
result.repositoryName = qualifiedRepository

0 commit comments

Comments
 (0)