Add warnings for using image or registry input with FQIN tags

This commit is contained in:
なつき 2021-10-11 23:54:56 -07:00
parent 214a09741c
commit 8e23aeed4c
3 changed files with 9 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -86,6 +86,13 @@ async function run(): Promise<void> {
destinationImages = tagsList.map((tag) => getFullImageName(registryPath, tag)); destinationImages = tagsList.map((tag) => getFullImageName(registryPath, tag));
} }
else { else {
if (imageInput) {
core.warning(`Input "${Inputs.IMAGE}" is ignored when using full name tags`);
}
if (registry) {
core.warning(`Input "${Inputs.REGISTRY}" is ignored when using full name tags`);
}
sourceImages = tagsList; sourceImages = tagsList;
destinationImages = tagsList; destinationImages = tagsList;
} }