mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-11-25 21:49:33 +01:00
Merge pull request #33 from jennydaman/lowercase
Convert repository to lower case
This commit is contained in:
commit
4b076256d2
2 changed files with 5 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -152,6 +152,8 @@ function getInputs() {
|
|||
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
|
||||
inputs.repository = process.env['GITHUB_REPOSITORY'];
|
||||
}
|
||||
// Docker repositories must be all lower case
|
||||
inputs.repository = inputs.repository.toLowerCase();
|
||||
return inputs;
|
||||
}
|
||||
exports.getInputs = getInputs;
|
||||
|
|
|
@ -58,6 +58,9 @@ export function getInputs(): Inputs {
|
|||
inputs.repository = process.env['GITHUB_REPOSITORY']
|
||||
}
|
||||
|
||||
// Docker repositories must be all lower case
|
||||
inputs.repository = inputs.repository.toLowerCase()
|
||||
|
||||
return inputs
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue