All Projects → dawidd6 → Action Download Artifact

dawidd6 / Action Download Artifact

Licence: mit
⚙️ A GitHub Action to download an artifact associated with given workflow and commit or other criteria

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Action Download Artifact

Ssh Agent
GitHub Action to setup `ssh-agent` with a private key
Stars: ✭ 365 (+241.12%)
Mutual labels:  action, workflow
Add And Commit
Add & commit files from a path directly from GitHub Actions
Stars: ✭ 198 (+85.05%)
Mutual labels:  workflow, commit
Git Commit Style Guide
Make git commit message more readable and useful.
Stars: ✭ 170 (+58.88%)
Mutual labels:  workflow, commit
Zoo
🌈 Cute pet zoo. Come and adopt a cute you like. 萌萌乐园,全自动领养自己喜欢的萌物。
Stars: ✭ 121 (+13.08%)
Mutual labels:  action, workflow
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-76.64%)
Mutual labels:  workflow, action
Upload To Release
A GitHub Action that uploads a file to a new release.
Stars: ✭ 144 (+34.58%)
Mutual labels:  action, workflow
Ibm Z Zos
The helpful and handy location for finding and sharing z/OS files, which are not included in the product.
Stars: ✭ 198 (+85.05%)
Mutual labels:  download, workflow
Compressed Size Action
GitHub Action that adds compressed size changes to your PRs.
Stars: ✭ 300 (+180.37%)
Mutual labels:  action, workflow
Processjs
Stars: ✭ 48 (-55.14%)
Mutual labels:  action, workflow
Qimage Mac
Mac 版本的 Markdown 一键贴图工具,基于 Alfred 实现,支持本地文件、截图、网络图片一键上传七牛云,使用简单方便
Stars: ✭ 99 (-7.48%)
Mutual labels:  workflow
Genomics
A collection of scripts and notes related to genomics and bioinformatics
Stars: ✭ 101 (-5.61%)
Mutual labels:  workflow
Avaloniabehaviors
Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
Stars: ✭ 96 (-10.28%)
Mutual labels:  action
Cadence Python
Python framework for Cadence Workflow Service
Stars: ✭ 100 (-6.54%)
Mutual labels:  workflow
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-4.67%)
Mutual labels:  workflow
Actionview
An issue tracking tool based on laravel+reactjs for small and medium-sized enterprises, open-source and free, similar to Jira.
Stars: ✭ 1,357 (+1168.22%)
Mutual labels:  workflow
Petrinet
🚥 Petrinet framework for PHP
Stars: ✭ 107 (+0%)
Mutual labels:  workflow
Medialoader
Cache video/audio while playing for any android media player
Stars: ✭ 97 (-9.35%)
Mutual labels:  download
Nflow
nFlow is a battle-proven solution for orchestrating business processes. It can be used as microservices orchestrator (Saga-pattern), as business process engine or as persistent finite-state machine.
Stars: ✭ 96 (-10.28%)
Mutual labels:  workflow
Auto.js
A UiAutomator on android, does not need root access(安卓平台上的JavaScript自动化工具)
Stars: ✭ 10,882 (+10070.09%)
Mutual labels:  workflow
Victor Mono
A free programming font with cursive italics and ligatures. Donations welcome ❤️
Stars: ✭ 1,854 (+1632.71%)
Mutual labels:  download

Download workflow artifact GitHub Action

An action that downloads and extracts uploaded artifact associated with given workflow and commit or other criteria.

Let's suppose you have a workflow with a job in it that at the end uploads an artifact using actions/upload-artifact action and you want to download this artifact in another workflow that is run after the first one. Official actions/download-artifact does not allow this. That's why I decided to create this action. By knowing only the workflow name and commit SHA, you can download the previously uploaded artifact from different workflow associated with that commit and use it.

Usage

If commit or pr or branch or run_id or workflow_conclusion is not specified then the artifact from the most recent successfully completed workflow run will be downloaded.

Do not specify pr, commit, branch, run_id together or workflow_conclusion and run_id together. Pick just one of each or none.

- name: Download artifact
  uses: dawidd6/[email protected]
  with:
    # Optional, GitHub token
    github_token: ${{secrets.GITHUB_TOKEN}}
    # Required, workflow file name or ID
    workflow: workflow_name.yml
    # Optional, the status or conclusion of a completed workflow to search for
    # Can be one of a workflow conclusion::
    # "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required"
    # Or a workflow status:
    # "completed", "in_progress", "queued"
    # Default: "completed,success"
    workflow_conclusion: success
    # Optional, will get head commit SHA
    pr: ${{github.event.pull_request.number}}
    # Optional, no need to specify if PR is
    commit: ${{github.event.pull_request.head.sha}}
    # Optional, will use the branch
    branch: master
    # Optional, will use specified workflow run
    run_id: 1122334455
    # Optional, run number from the workflow
    run_number: 34
    # Optional, uploaded artifact name,
    # will download all artifacts if not specified
    # and extract them in respective subdirectories
    # https://github.com/actions/download-artifact#download-all-artifacts
    name: artifact_name
    # Optional, directory where to extract artifact
    path: extract_here
    # Optional, defaults to current repo
    repo: ${{github.repository}}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].