mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-12 01:53:19 +08:00
consistent promise behavior for get artifact
This commit is contained in:
@@ -19,3 +19,11 @@ export class InvalidResponseError extends Error {
|
||||
this.name = 'InvalidResponseError'
|
||||
}
|
||||
}
|
||||
|
||||
export class ArtifactNotFoundError extends Error {
|
||||
constructor(name: string) {
|
||||
const message = `No artifact found for name: ${name}`
|
||||
super(message)
|
||||
this.name = 'ArtifactNotFoundError'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,11 +53,6 @@ export interface UploadArtifactOptions {
|
||||
*****************************************************************************/
|
||||
|
||||
export interface GetArtifactResponse {
|
||||
/**
|
||||
* If an artifact was found
|
||||
*/
|
||||
success: boolean
|
||||
|
||||
/**
|
||||
* Metadata about the artifact that was found
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user