Skip to content

Commit

Permalink
Fix input typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 1, 2024
1 parent b19d228 commit e9bf976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function getJobSummaryOption(): JobSummaryOption {
}

export function getPRCommentOption(): JobSummaryOption {
return parseJobSummaryOption('add-job-summary-as-pr-commment')
return parseJobSummaryOption('add-job-summary-as-pr-comment')
}

function parseJobSummaryOption(paramName: string): JobSummaryOption {
Expand All @@ -89,7 +89,7 @@ function parseJobSummaryOption(paramName: string): JobSummaryOption {
case 'on-failure':
return JobSummaryOption.OnFailure
}
throw TypeError(`The value '${val} is not valid for 'paramName. Valid values are: [never, always, on-failure].`)
throw TypeError(`The value '${val}' is not valid for ${paramName}. Valid values are: [never, always, on-failure].`)
}

export function getDependencyGraphOption(): DependencyGraphOption {
Expand All @@ -107,7 +107,7 @@ export function getDependencyGraphOption(): DependencyGraphOption {
return DependencyGraphOption.DownloadAndSubmit
}
throw TypeError(
`The value '${val} is not valid for 'dependency-graph. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`
`The value '${val}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-and-upload, download-and-submit]. The default value is 'disabled'.`
)
}

Expand Down

0 comments on commit e9bf976

Please sign in to comment.