Fail on delegation from legacy actions

This commit is contained in:
daz
2024-07-19 15:03:13 -06:00
parent ded8009fcf
commit 2041ce6ab1
3 changed files with 10 additions and 13 deletions

View File

@@ -22,11 +22,9 @@ export function recordDeprecation(message: string): void {
}
}
export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string): void {
export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string = removalMessage): void {
const deprecation = new Deprecation(deprecationMessage)
core.error(
`${removalMessage}. See ${deprecation.getDocumentationLink()}`
)
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`)
}
export function getDeprecations(): Deprecation[] {