mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Fail the build when arguments parameter is used
This commit is contained in:
@@ -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[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user