You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Download-Artifact v2
1
+
# Download-Artifact v3
2
2
3
3
This downloads artifacts from your build
4
4
@@ -10,7 +10,7 @@ See also [upload-artifact](https://github.com/actions/upload-artifact).
10
10
- Output parameter for the download path
11
11
- Port entire action to typescript from a runner plugin so it is easier to collaborate and accept contributions
12
12
13
-
Refer [here](https://github.com/actions/download-artifact/tree/v1) for the previous version
13
+
Refer [here](https://github.com/actions/download-artifact/tree/v2) for the previous version
14
14
15
15
# Usage
16
16
@@ -23,7 +23,7 @@ Basic (download to the current working directory):
23
23
steps:
24
24
- uses: actions/checkout@v2
25
25
26
-
- uses: actions/download-artifact@v2
26
+
- uses: actions/download-artifact@v3
27
27
with:
28
28
name: my-artifact
29
29
@@ -36,7 +36,7 @@ Download to a specific directory:
36
36
steps:
37
37
- uses: actions/checkout@v2
38
38
39
-
- uses: actions/download-artifact@v2
39
+
- uses: actions/download-artifact@v3
40
40
with:
41
41
name: my-artifact
42
42
path: path/to/artifact
@@ -48,13 +48,13 @@ steps:
48
48
49
49
Basic tilde expansion is supported for the `path` input:
50
50
```yaml
51
-
- uses: actions/download-artifact@v2
51
+
- uses: actions/download-artifact@v3
52
52
with:
53
53
name: my-artifact
54
54
path: ~/download/path
55
55
```
56
56
57
-
## Compatibility between `v1` and `v2`
57
+
## Compatibility between `v1` and `v2`/`v3`
58
58
59
59
When using `download-artifact@v1`, a directory denoted by the name of the artifact would be created if the `path` input was not provided. All of the contents would be downloaded to this directory.
60
60
```
@@ -63,13 +63,13 @@ When using `download-artifact@v1`, a directory denoted by the name of the artifa
63
63
... contents of my-artifact
64
64
```
65
65
66
-
With `v2`, when an artifact is specified by the `name` input, there is no longer an extra directory that is created if the `path` input is not provided. All the contents are downloaded to the current working directory.
66
+
With `v2` and `v3`, when an artifact is specified by the `name` input, there is no longer an extra directory that is created if the `path` input is not provided. All the contents are downloaded to the current working directory.
67
67
```
68
68
current/working/directory/
69
69
... contents of my-artifact
70
70
```
71
71
72
-
To maintain the same behavior for `v2`, you can set the `path` to the name of the artifact so an extra directory gets created.
72
+
To maintain the same behavior for `v2` and `v3`, you can set the `path` to the name of the artifact so an extra directory gets created.
73
73
```
74
74
- uses: actions/download-artifact@v2
75
75
with:
@@ -95,7 +95,7 @@ Download all artifacts to a specific directory
95
95
steps:
96
96
- uses: actions/checkout@v2
97
97
98
-
- uses: actions/download-artifact@v2
98
+
- uses: actions/download-artifact@v3
99
99
with:
100
100
path: path/to/artifacts
101
101
@@ -109,7 +109,7 @@ Download all artifacts to the current working directory
109
109
steps:
110
110
- uses: actions/checkout@v2
111
111
112
-
- uses: actions/download-artifact@v2
112
+
- uses: actions/download-artifact@v3
113
113
114
114
- name: Display structure of downloaded files
115
115
run: ls -R
@@ -123,7 +123,7 @@ The `download-path` step output contains information regarding where the artifac
0 commit comments