mirror of
https://github.com/gradle/actions.git
synced 2025-08-24 19:01:27 +08:00
Fail the build when arguments
parameter is used
This commit is contained in:
parent
81b4ac7741
commit
fae6382622
@ -24,7 +24,7 @@ export function recordDeprecation(message: string): void {
|
|||||||
|
|
||||||
export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string = removalMessage): void {
|
export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string = removalMessage): void {
|
||||||
const deprecation = new Deprecation(deprecationMessage)
|
const deprecation = new Deprecation(deprecationMessage)
|
||||||
core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`)
|
core.setFailed(`${removalMessage}. See ${deprecation.getDocumentationLink()}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDeprecations(): Deprecation[] {
|
export function getDeprecations(): Deprecation[] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user