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