Github Actions Download Artifact Example __full__ Page
Large artifacts can consume your GitHub Actions storage quota quickly. Always zip large directories before uploading. js, Docker, or Python deployments?
By default, GitHub keeps artifacts for 90 days . You can shorten this in your upload-artifact step to save storage. github actions download artifact example
- name: Download from specific run uses: actions/download-artifact@v4 with: name: production-binaries run-id: 123456789 github-token: ${{ secrets.GITHUB_TOKEN }} Use code with caution. 3. Using Wildcards Large artifacts can consume your GitHub Actions storage
- name: Download all artifacts uses: actions/download-artifact@v4 with: path: all-my-files Use code with caution. 2. Downloading from a Different Workflow By default, GitHub keeps artifacts for 90 days
When uploading, you can use glob patterns to grab specific file types. path: dist/*.js — All JS files in dist. path: build/** — Entire build directory tree. 🛠️ Key Parameters Reference Description name Name of the artifact to download. No (downloads all if empty) path Where to save the downloaded files. No (defaults to current dir) github-token Token used for API authentication. run-id ID of the run that uploaded the artifact. No (defaults to current) ⚠️ Common Pitfalls