Class GitHubActions
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Exposes GitHub Actions workflow commands and runner metadata.
public sealed class GitHubActionsProperties
Action
The Action metadata read from the provider environment.
public GitHubActionMetadata Action { get; }Property Value
Event
The Event metadata read from the provider environment.
public GitHubEventMetadata Event { get; }Property Value
Files
The Files metadata read from the provider environment.
public GitHubCommandFileMetadata Files { get; }Property Value
Repository
The Repository metadata read from the provider environment.
public GitHubRepositoryMetadata Repository { get; }Property Value
Run
The Run metadata read from the provider environment.
public GitHubRunMetadata Run { get; }Property Value
Runner
The Runner metadata read from the provider environment.
public GitHubRunnerMetadata Runner { get; }Property Value
Workflow
The Workflow metadata read from the provider environment.
public GitHubWorkflowMetadata Workflow { get; }Property Value
Methods
AddMask(string)
Emits the provider's AddMask command immediately.
public void AddMask(string value)Parameters
valuestring
AddPath(AbsolutePath)
Emits the provider's AddPath command immediately.
public void AddPath(AbsolutePath path)Parameters
pathAbsolutePath
AppendSummary(string)
Emits the provider's AppendSummary command immediately.
public void AppendSummary(string markdown)Parameters
markdownstring
ClearSummary()
Emits the provider's ClearSummary command immediately.
public void ClearSummary()Debug(string)
Emits the provider's Debug command immediately.
public void Debug(string message)Parameters
messagestring
Echo(bool)
Emits the provider's Echo command immediately.
public void Echo(bool enabled)Parameters
enabledbool
EndGroup()
Emits the provider's EndGroup command immediately.
public void EndGroup()Error(string, GitHubAnnotation?)
Emits the provider's Error command immediately.
public void Error(string message, GitHubAnnotation? annotation = null)Parameters
messagestringannotationGitHubAnnotation?
Notice(string, GitHubAnnotation?)
Emits the provider's Notice command immediately.
public void Notice(string message, GitHubAnnotation? annotation = null)Parameters
messagestringannotationGitHubAnnotation?
OverwriteSummary(string)
Emits the provider's OverwriteSummary command immediately.
public void OverwriteSummary(string markdown)Parameters
markdownstring
SaveState(string, string)
Emits the provider's SaveState command immediately.
public void SaveState(string name, string value)Parameters
SetEnvironmentVariable(string, string)
Emits the provider's SetEnvironmentVariable command immediately.
public void SetEnvironmentVariable(string name, string value)Parameters
SetOutput(string, string)
Emits the provider's SetOutput command immediately.
public void SetOutput(string name, string value)Parameters
StartCommands(string)
Emits the provider's StartCommands command immediately.
public void StartCommands(string token)Parameters
tokenstring
StartGroup(string)
Emits the provider's StartGroup command immediately.
public void StartGroup(string title)Parameters
titlestring
StopCommands(string)
Emits the provider's StopCommands command immediately.
public void StopCommands(string token)Parameters
tokenstring
Warning(string, GitHubAnnotation?)
Emits the provider's Warning command immediately.
public void Warning(string message, GitHubAnnotation? annotation = null)Parameters
messagestringannotationGitHubAnnotation?