Add dependency-graph-continue-on-failure input param

- Translate to env var for init-script support
- Use when deciding whether to log or rethrow errors
- Add a custom error type to trigger failure in post action
This commit is contained in:
daz
2024-01-12 11:15:01 -07:00
parent 369fcc54d8
commit a01f794d92
8 changed files with 70 additions and 16 deletions

View File

@@ -107,6 +107,10 @@ export function getDependencyGraphOption(): DependencyGraphOption {
)
}
export function getDependencyGraphContinueOnFailure(): boolean {
return getBooleanInput('dependency-graph-continue-on-failure', true)
}
export function getArtifactRetentionDays(): number {
const val = core.getInput('artifact-retention-days')
return parseNumericInput('artifact-retention-days', val, 0)