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
+1
View File
@@ -14,6 +14,7 @@ const inputs: RunInputs = {
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(
+4 -1
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(