update GHES warning behavior

This commit is contained in:
Rob Herley authored and GitHub committed 2023-12-05 18:42:36 +00:00
1 parent 1bd4136583
commit 82f54b0aa5
3 files changed
+35 -51

No files matched your search

+9
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'
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ export interface GetArtifactResponse {
/**
* Metadata about the artifact that was found
*/
artifact?: Artifact
artifact: Artifact
}
/*****************************************************************************