Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 2.16 KB

File metadata and controls

48 lines (27 loc) · 2.16 KB

ActionsMinUtils

This is a very small set of utilities for working with .NET Core based GitHub Actions.

This library is intended particularly at making it easier to build Docker container Actions.

It contains utilities for:

  • logging
  • dealing with inputs and environment variables
  • talking to GitHub APIs (with retry)

Logger

The Logger class is a simple wrapper around the System.Console class. It provides a few convenience methods for logging messages to the console in a way Actions can understand.

ActionContext

The ActionContext class provides methods for reading and validating both environment variables and inputs. As a matter of fact, to avoid having to deal with container args, inputs are read from environment variables!

github

This namespace provides various GitHub specific utilities.

DefaultVariables

The DefaultVariables class defines useful constants for referring to default environment variables exposed to Actions runners.

GitHub

The GitHub class defines two clients for talking to GitHub APIs, Rest and GraphQL.

templating

MarkersParser

The MarkersParser class provides utilities for parsing and formatting simple Markers. They are meant to be one-liner embedded in various text files (Markdown, YAML, etc.).

Templates

The Templates class provides basic templating capabilities using Liquid to parse templates from string or files. It comes with basic support for Markers too and can be used to render arbitrary supplied variables.