GitHubActionsCommands.

DownloadArtifact(string, DirectoryPath) Method

Summary

Download remote artifact container into local directory.

Syntax

public Task DownloadArtifact(string artifactName, DirectoryPath path)

Examples

if (GitHubActions.IsRunningOnGitHubActions)
{
    await GitHubActions.Commands.DownloadArtifact("cake-integration-tests", targetPath);
}

Parameters

Name Type Description
artifactName string The artifact name.
path DirectoryPath Path to the local directory.

Return Value

Type Description
Task A Task representing the asynchronous operation.