mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
Deprecate 'wrapper-validation-action'
Deprecation warning will be emitted when we: - Change 'wrapper-validation-action' to delegate to 'actions/wrapper-validation' - Add the 'wrapper-validation-action' id as env var before delegating
This commit is contained in:
@@ -26,10 +26,10 @@ export function getDeprecations(): Deprecation[] {
|
||||
return recordedDeprecations
|
||||
}
|
||||
|
||||
export function emitDeprecationWarnings(): void {
|
||||
export function emitDeprecationWarnings(hasJobSummary = true): void {
|
||||
if (recordedDeprecations.length > 0) {
|
||||
core.warning(
|
||||
`This job uses deprecated functionality from the '${getActionId()}' action. Consult the Job Summary for more details.`
|
||||
`This job uses deprecated functionality from the '${getActionId()}' action. Consult the ${hasJobSummary ? 'Job Summary' : 'logs'} for more details.`
|
||||
)
|
||||
for (const deprecation of recordedDeprecations) {
|
||||
core.info(`DEPRECATION: ${deprecation.message}. See ${deprecation.getDocumentationLink()}`)
|
||||
|
||||
Reference in New Issue
Block a user