diff --git a/sources/src/deprecation-collector.ts b/sources/src/deprecation-collector.ts index 26d6870a..b0b1c9dd 100644 --- a/sources/src/deprecation-collector.ts +++ b/sources/src/deprecation-collector.ts @@ -24,7 +24,7 @@ export function recordDeprecation(message: string): void { export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string = removalMessage): void { const deprecation = new Deprecation(deprecationMessage) - core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`) + core.setFailed(`${removalMessage}. See ${deprecation.getDocumentationLink()}`) } export function getDeprecations(): Deprecation[] {