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
@@ -21,6 +22,17 @@ See also [upload-artifact](https://github.com/actions/upload-artifact).
21
22
-[Limitations](#limitations)
22
23
-[Permission Loss](#permission-loss)
23
24
25
+
## v5 - What's new
26
+
27
+
Previously, **single artifact downloads** behaved differently depending on how you specified the artifact:
28
+
29
+
-**By name**: `name: my-artifact` → extracted to `path/` (direct)
30
+
-**By ID**: `artifact-ids: 12345` → extracted to `path/my-artifact/` (nested)
31
+
32
+
Now both methods are consistent:
33
+
34
+
-**By name**: `name: my-artifact` → extracted to `path/` (unchanged)
35
+
-**By ID**: `artifact-ids: 12345` → extracted to `path/` (updated - now direct)
24
36
25
37
## v4 - What's new
26
38
@@ -66,7 +78,7 @@ You are welcome to still raise bugs in this repo.
66
78
### Inputs
67
79
68
80
```yaml
69
-
- uses: actions/download-artifact@v4
81
+
- uses: actions/download-artifact@v5
70
82
with:
71
83
# Name of the artifact to download.
72
84
# If unspecified, all artifacts for the run are downloaded.
@@ -124,7 +136,7 @@ Download to current working directory (`$GITHUB_WORKSPACE`):
124
136
125
137
```yaml
126
138
steps:
127
-
- uses: actions/download-artifact@v4
139
+
- uses: actions/download-artifact@v5
128
140
with:
129
141
name: my-artifact
130
142
- name: Display structure of downloaded files
@@ -135,7 +147,7 @@ Download to a specific directory (also supports `~` expansion):
135
147
136
148
```yaml
137
149
steps:
138
-
- uses: actions/download-artifact@v4
150
+
- uses: actions/download-artifact@v5
139
151
with:
140
152
name: my-artifact
141
153
path: your/destination/dir
@@ -151,7 +163,7 @@ Download a single artifact by ID to the current working directory (`$GITHUB_WORK
151
163
152
164
```yaml
153
165
steps:
154
-
- uses: actions/download-artifact@v4
166
+
- uses: actions/download-artifact@v5
155
167
with:
156
168
artifact-ids: 12345
157
169
- name: Display structure of downloaded files
@@ -162,7 +174,7 @@ Download a single artifact by ID to a specific directory:
162
174
163
175
```yaml
164
176
steps:
165
-
- uses: actions/download-artifact@v4
177
+
- uses: actions/download-artifact@v5
166
178
with:
167
179
artifact-ids: 12345
168
180
path: your/destination/dir
@@ -176,7 +188,7 @@ Multiple artifacts can be downloaded by providing a comma-separated list of IDs:
176
188
177
189
```yaml
178
190
steps:
179
-
- uses: actions/download-artifact@v4
191
+
- uses: actions/download-artifact@v5
180
192
with:
181
193
artifact-ids: 12345,67890
182
194
path: path/to/artifacts
@@ -204,7 +216,7 @@ Download all artifacts to the current working directory:
204
216
205
217
```yaml
206
218
steps:
207
-
- uses: actions/download-artifact@v4
219
+
- uses: actions/download-artifact@v5
208
220
- name: Display structure of downloaded files
209
221
run: ls -R
210
222
```
@@ -213,7 +225,7 @@ Download all artifacts to a specific directory:
213
225
214
226
```yaml
215
227
steps:
216
-
- uses: actions/download-artifact@v4
228
+
- uses: actions/download-artifact@v5
217
229
with:
218
230
path: path/to/artifacts
219
231
- name: Display structure of downloaded files
@@ -224,7 +236,7 @@ To download them to the _same_ directory:
224
236
225
237
```yaml
226
238
steps:
227
-
- uses: actions/download-artifact@v4
239
+
- uses: actions/download-artifact@v5
228
240
with:
229
241
path: path/to/artifacts
230
242
merge-multiple: true
@@ -264,7 +276,7 @@ jobs:
264
276
runs-on: ubuntu-latest
265
277
steps:
266
278
- name: Download All Artifacts
267
-
uses: actions/download-artifact@v4
279
+
uses: actions/download-artifact@v5
268
280
with:
269
281
path: my-artifact
270
282
pattern: my-artifact-*
@@ -287,7 +299,7 @@ It may be useful to download Artifacts from other workflow runs, or even other r
287
299
288
300
```yaml
289
301
steps:
290
-
- uses: actions/download-artifact@v4
302
+
- uses: actions/download-artifact@v5
291
303
with:
292
304
name: my-other-artifact
293
305
github-token: ${{ secrets.GH_PAT }} # token with actions:read permissions on target repo
0 commit comments