add show-summary input (#108)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user