From d4e0800ec57bf1fc364dc145b92d5fb494fd012f Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Wed, 3 Feb 2021 19:54:07 -0500 Subject: [PATCH] Convert repository to lower case --- dist/index.js | 2 ++ src/input-helper.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dist/index.js b/dist/index.js index 697f3a6..bcb71fa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; diff --git a/src/input-helper.ts b/src/input-helper.ts index f4c5997..dd79412 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -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 }