Skip to content

Commit

Permalink
Convert repository to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 4, 2021
1 parent 91342cc commit d4e0800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/input-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d4e0800

Please sign in to comment.