mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 00:18:30 +02:00
Support downloading artifacts with common prefix
This commit adds the `name-prefix` input parameter to allow downloading multiple artifacts of which the names share a common prefix. This is useful for aggregating artifacts produced by matrix runs (e.g. reports from matrixed test jobs). Provides a smoother migration path for the use cases in #248.
This commit is contained in:
parent
1bd0606e08
commit
15051941e0
4 changed files with 32 additions and 5 deletions
|
@ -46,9 +46,15 @@ For more information, see the [`@actions/artifact`](https://github.com/actions/t
|
|||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
# Name of the artifact to download.
|
||||
# Optional. If unspecified, all artifacts for the run are downloaded.
|
||||
# Optional. If unspecified, all artifacts for the run are downloaded, unless restricted by `name-prefix`.
|
||||
name:
|
||||
|
||||
# Name prefix of artifacts to download.
|
||||
# If specified, download all artifacts of which the name starts with the given prefix.
|
||||
# This is useful for aggregating artifacts produced by matrix jobs, for example.
|
||||
# Optional; only meaningful if `name` is unspecified.
|
||||
name-prefix:
|
||||
|
||||
# Destination path. Supports basic tilde expansion.
|
||||
# Optional. Defaults is $GITHUB_WORKSPACE
|
||||
path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue