The simplest way to retrieve every artifact uploaded in a workflow is to omit the name parameter. By default, GitHub will download every artifact and place each into its own subdirectory named after the artifact itself.
- name: Download all artifacts uses: actions/download-artifact@v4 with: path: all-my-artifacts/ Use code with caution. 2. Download Based on a Pattern (v4+) github actions download multiple artifacts
Depending on your use case—whether you need all artifacts, a specific subset, or want them merged into one folder—you can use the following configurations: 1. Download All Artifacts in a Run The simplest way to retrieve every artifact uploaded
- name: Merge all build outputs into one folder uses: actions/download-artifact@v4 with: pattern: build-* path: dist/ merge-multiple: true Use code with caution. Advanced Scenarios Store and share data with workflow artifacts - GitHub Docs Advanced Scenarios Store and share data with workflow
GitHub Actions provides several methods to during a workflow run , which is essential for workflows that split build processes across different jobs or matrix configurations. Since the release of actions/download-artifact@v4 , performance has improved significantly, and new features like pattern matching have been introduced to simplify bulk downloads. Key Methods to Download Multiple Artifacts