actions/Download a Build Artifact

Download a build artifact that was previously uploaded in the workflow by the upload-artifact action

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
nameName of the artifact to download. If unspecified, all artifacts for the run are downloaded.no
artifact-idsIDs of the artifacts to download, comma-separated. Either inputs `artifact-ids` or `name` can be used, but not both.no
pathDestination path. Supports basic tilde expansion. Defaults to $GITHUB_WORKSPACEno
patternA glob pattern matching the artifacts that should be downloaded. Ignored if name is specified.no
merge-multipleWhen multiple artifacts are matched, this changes the behavior of the destination directories. If true, the downloaded artifacts will be in the same directory specified by path. If false, the downloaded artifacts will be extracted into individual named directories within the specified path.nofalse
github-tokenThe GitHub token used to authenticate with the GitHub API. This is required when downloading artifacts from a different repository or from a different workflow run. If this is not specified, the action will attempt to download artifacts from the current repository and the current workflow run.no
repositoryThe repository owner and the repository name joined together by "/". If github-token is specified, this is the repository that artifacts will be downloaded from.no${{ github.repository }}
run-idThe id of the workflow run where the desired download artifact was uploaded from. If github-token is specified, this is the run that artifacts will be downloaded from.no${{ github.run_id }}
skip-decompressIf true, the downloaded artifact will not be automatically extracted/decompressed. This is useful when you want to handle the artifact as-is without extraction.nofalse
digest-mismatchThe behavior when a downloaded artifact's digest does not match the expected digest. Options: ignore, info, warn, error. Default is error which will fail the action.noerror
namedescription
download-pathPath of artifact download