update GHES warning behavior

This commit is contained in:
Rob Herley
2023-12-05 18:42:36 +00:00
committed by GitHub
parent ce9eae0785
commit b9872153b8
3 changed files with 35 additions and 51 deletions

View File

@@ -26,3 +26,12 @@ export class ArtifactNotFoundError extends Error {
this.name = 'ArtifactNotFoundError'
}
}
export class GHESNotSupportError extends Error {
constructor(
message = '@actions/artifact v2.0.0+ and download-artifact@v4+ are not currently supported on GHES.'
) {
super(message)
this.name = 'NotSupportedGHESError'
}
}

View File

@@ -56,7 +56,7 @@ export interface GetArtifactResponse {
/**
* Metadata about the artifact that was found
*/
artifact?: Artifact
artifact: Artifact
}
/*****************************************************************************