add show-summary input (#108)

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer
2024-07-30 11:27:18 -07:00
committed by GitHub
parent af3e2e79a8
commit 97f7cf8914
8 changed files with 23 additions and 5 deletions

5
dist/index.js generated vendored
View File

@@ -80030,6 +80030,7 @@ const inputs = {
predicate: core.getInput('predicate'),
predicatePath: core.getInput('predicate-path'),
pushToRegistry: core.getBooleanInput('push-to-registry'),
showSummary: core.getBooleanInput('show-summary'),
githubToken: core.getInput('github-token'),
// undocumented -- not part of public interface
privateSigning: ['true', 'True', 'TRUE', '1'].includes(core.getInput('private-signing')),
@@ -80147,7 +80148,9 @@ async function run(inputs) {
});
}
}
logSummary(atts);
if (inputs.showSummary) {
logSummary(atts);
}
}
catch (err) {
// Fail the workflow run if an error occurs