https://github.com/liri-infra/fetch-artifact
:heavy_plus_sign: GitHub action to fetch and extract an artifact from an arbitrary workflow and repository
https://github.com/liri-infra/fetch-artifact
actions arbitrary artifact download extract fetch github github-actions
Last synced: 2 months ago
JSON representation
:heavy_plus_sign: GitHub action to fetch and extract an artifact from an arbitrary workflow and repository
- Host: GitHub
- URL: https://github.com/liri-infra/fetch-artifact
- Owner: liri-infra
- License: other
- Created: 2020-04-19T10:24:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-10T10:43:49.000Z (about 1 year ago)
- Last Synced: 2025-06-10T11:38:50.778Z (about 1 year ago)
- Topics: actions, arbitrary, artifact, download, extract, fetch, github, github-actions
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fetch-artifact
Fetch an artifact from a workflow run, even though it's on anothe repository
and extracts it to a path.
Let's suppose that you [upload an artifact](https://github.com/actions/upload-artifact)
of a repository in your organization and want to download it from a workflow
of another repository.
You cannot do that with with the [official action](https://github.com/actions/download-artifact).
## Usage
This is the step you need to add to your job:
```yaml
- name: Fetch artifact
uses: liri-infra/fetch-artifact
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: octofoo/bar
workflow_path: .github/workflows/build.yml
artifact_name: artifacts
extract_to: /tmp
save_as: foobar.zip
```