Merge pull request #33 from jennydaman/lowercase
Some checks failed
Publish Docker Image / publish (push) Has been cancelled

Convert repository to lower case
This commit is contained in:
Peter Evans
2021-02-05 10:18:20 +09:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

2
dist/index.js vendored
View File

@@ -152,6 +152,8 @@ function getInputs() {
if (!inputs.repository && process.env['GITHUB_REPOSITORY']) { if (!inputs.repository && process.env['GITHUB_REPOSITORY']) {
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; return inputs;
} }
exports.getInputs = getInputs; exports.getInputs = getInputs;

View File

@@ -58,6 +58,9 @@ export function getInputs(): Inputs {
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 return inputs
} }