Skip to content

synergy-au/download-workflow-artifacts-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download Previous Workflow's Artifacts

GitHub Action that allows you to download artifacts generated from the previous workflow that triggered a workflow_run event on another workflow. This will download and unzip the artifacts in the directory of where the action is running from.

Example Workflow File

name: Example Workflow

on:
  workflow_run:
    workflows: ["Previous Workflow"]
    types: 
      - completed

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Repository
      uses: actions/checkout@v3
    - name: Download Artifacts from Previous Workflow
      uses: synergy-au/download-workflow-artifacts-action@v1
      with:
        # Optional, GITHUB_TOKEN is used by default. Token is needed for private repos.
        auth-token: ${{ secrets.GITHUB_TOKEN }}
        # Optional, the ID of the workflow that triggered the run is used by default
        workflow-run-id: ${{ github.event.workflow_run.id }}

About

GitHub Action that allows you to download artifacts generated from a previous workflow.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 2

  •  
  •