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