Skip to content

liri-infra/fetch-artifact

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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 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.

Usage

This is the step you need to add to your job:

- 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

About

GitHub action to fetch and extract an artifact from an arbitrary workflow and repository

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published