2
0
Fork 0
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:
Jason D'Amour 2023-06-30 20:02:02 -05:00 committed by CrazyMax
parent 051f7ea71b
commit aacea38e07
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4
2 changed files with 17 additions and 8 deletions

View file

@ -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();