Skip to content

Download from a different workflow #501

Description

@owenfarrell

Describe the enhancement

Add support for downloading artifacts from other workflows and/or previous workflow runs.

Code Snippet

Adding an optional parameter that defines search criteria would provide the ability to reference other workflows and previous executions as necessary. For example:

// Representative new behaviorconstpreviousWorkflowRunCriteria : WorkflowCriteria={branch: 'master',event: 'push',status: 'success'}constartifactsFromPreviousRunOfThisWorkflow=awaitartifactClient.downloadAllArtifacts(path,previousWorkflowRunCriteria)constanotherWorkflowCriteria : WorkflowCriteria={owner: 'owenfarrell',repo: 'vscode-vault',workflow: 'Build'}constartifactsFromAnotherWorkflow=awaitartifactClient.downloadAllArtifacts(path,anotherWorkflowCriteria)// Existing behaviorconstartifactsFromThisRunOfThisWorkflow=awaitartifactClient.downloadAllArtifacts(path)

Additional information

Per the report in actions/download-artifact#3, a common use case amongst GitHub Actions users is to download an artifact from a previous run (or from another workflow altogether). This request serves as a precursor to resolving the linked issue above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions