mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-27 08:58:28 +02:00
PR feedback
This commit is contained in:
parent
539315322a
commit
10ae4df874
5 changed files with 10 additions and 6 deletions
|
@ -108,7 +108,7 @@ steps:
|
|||
|
||||
# Download path output
|
||||
|
||||
Not sure where your artifact was downloaded to? The `download-path` step output can help you out. Just make sure to be aware of the extra directory that is created if downloading all artifacts (no name specified).
|
||||
The `download-path` step output contains information regarding where the artifact was downloaded to. This output can be used for a variety of purposes such as logging or as input to other actions. Be aware of the extra directory that is created if downloading all artifacts (no name specified).
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
|
@ -120,10 +120,12 @@ steps:
|
|||
name: 'my-artifact'
|
||||
path: path/to/artifacts
|
||||
|
||||
- name: 'Output download path'
|
||||
- name: 'Echo download path'
|
||||
run: echo ${{steps.download.outputs.download-path}}
|
||||
```
|
||||
|
||||
> Note: The `id` defined in the `download/artifact` step must match the `id` defined in the `echo` step (i.e `steps.[ID].outputs.download-path`)
|
||||
|
||||
# @actions/artifact package
|
||||
|
||||
Internally the [@actions/artifact](https://github.com/actions/toolkit/tree/master/packages/artifact) NPM package is used to interact with artifacts. You can find additional documentation there along with all the source code related to artifact download.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue