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