mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-14 12:45:05 +00:00
Remove migration guide for artifact download changes
Readme probably should be less verbose since it's not a changelog.
This commit is contained in:
parent
2653c123b8
commit
7993cb44e9
25
README.md
25
README.md
@ -34,31 +34,6 @@ Now both methods are consistent:
|
|||||||
- **By name**: `name: my-artifact` → extracted to `path/` (unchanged)
|
- **By name**: `name: my-artifact` → extracted to `path/` (unchanged)
|
||||||
- **By ID**: `artifact-ids: 12345` → extracted to `path/` (updated - now direct)
|
- **By ID**: `artifact-ids: 12345` → extracted to `path/` (updated - now direct)
|
||||||
|
|
||||||
#### Migration Guide
|
|
||||||
|
|
||||||
If you download **single artifacts by ID** and your workflows expect the nested directory structure:
|
|
||||||
|
|
||||||
**Before v5 (nested structure):**
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
artifact-ids: 12345
|
|
||||||
path: dist
|
|
||||||
# Files were in: dist/my-artifact/
|
|
||||||
```
|
|
||||||
|
|
||||||
> Where `my-artifact` is the name of the artifact you previously uploaded
|
|
||||||
|
|
||||||
**To maintain old behavior:**
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: actions/download-artifact@v5
|
|
||||||
with:
|
|
||||||
artifact-ids: 12345
|
|
||||||
path: dist/my-artifact # Explicitly specify the nested path
|
|
||||||
```
|
|
||||||
|
|
||||||
## v4 - What's new
|
## v4 - What's new
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user