Skip to content

ShriHumrudha/GitActionSharp

Repository files navigation

.NET The Standard - COMPLIANT

GitActionSharp

Introduction

GitActionSharp (Git Actions in C#) is a .NET library enabling developers to develop any Git Action in C#.

Example

WorkflowClient workflowClient = new WorkflowClient();

var workflow = new Workflow
{
    Name = "Hello World!",
    On = "push",

    Jobs = new Job
    {
        Echo = new EchoJob
        {
            RunsOn = Machine.WindowsLatest,

            Steps = new List<GitActionTask>
            {
                new Echo
                {
                    Name = "Print",
                    Run = "echo My First Git Action using GitActionSharp."
                }
            }
        }
    }
};

workflowClient.CreateWorkflow("../../../../.github/workflows/echo.yml", workflow);
name: Hello World!
on: push
jobs:
  echo:
    runs-on: windows-latest
    steps:
    - name: Print
      run: echo My First Git Action using GitActionSharp.

Dependencies

YamlDotNet

Inspiration

ADotNet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages