downloadArtifact

abstract fun downloadArtifact(artifactId: Number, options: DownloadArtifactOptions = definedExternally): Promise<DownloadArtifactResponse>(source)

Downloads an artifact and unzips the content.

If options.findBy is specified, this will use the public Download Artifact API https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#download-an-artifact

Parameters

artifactId

The id of the artifact to download

options

Extra options that allow for the customization of the download behavior