mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-20 13:00:53 +00:00
feat: allow the images
input to be empty, to output just tags
Signed-off-by: Jason D'Amour <jasondamour98@gmail.com>
This commit is contained in:
parent
051f7ea71b
commit
aacea38e07
2 changed files with 17 additions and 8 deletions
|
@ -15,10 +15,6 @@ actionsToolkit.run(
|
|||
// main
|
||||
async () => {
|
||||
const inputs: Inputs = getInputs();
|
||||
if (inputs.images.length == 0) {
|
||||
throw new Error(`images input required`);
|
||||
}
|
||||
|
||||
const toolkit = new Toolkit({githubToken: inputs.githubToken});
|
||||
const context = await getContext(inputs.context);
|
||||
const repo = await toolkit.github.repoData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue