GitHubActionsWorkflowInfo.

ActionPath Property

Summary

Gets the path where your action is located. You can use this path to access files located in the same repository as your action. This variable is only supported in composite run steps actions.

Syntax

public DirectoryPath ActionPath { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow ActionPath: {0}", BuildSystem.GitHubActions.Environment.Workflow.ActionPath);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Workflow ActionPath: {0}", GitHubActions.Environment.Workflow.ActionPath);
}

Value

Type Description
DirectoryPath The path where your action is located. You can use this path to access files located in the same repository as your action. This variable is only supported in composite run steps actions.