mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-20 15:21:23 +00:00
Add warnings for using image or registry input with FQIN tags
This commit is contained in:
parent
214a09741c
commit
8e23aeed4c
3 changed files with 9 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -86,6 +86,13 @@ async function run(): Promise<void> {
|
|||
destinationImages = tagsList.map((tag) => getFullImageName(registryPath, tag));
|
||||
}
|
||||
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;
|
||||
destinationImages = tagsList;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue