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

View File

@@ -17,6 +17,7 @@ export type RunInputs = SubjectInputs &
PredicateInputs & {
pushToRegistry: boolean
githubToken: string
showSummary: boolean
privateSigning: boolean
batchSize: number
}
@@ -96,7 +97,9 @@ export async function run(inputs: RunInputs): Promise<void> {
}
}
logSummary(atts)
if (inputs.showSummary) {
logSummary(atts)
}
} catch (err) {
// Fail the workflow run if an error occurs
core.setFailed(