/github-actions-dhall

Typecheck, template and modularize your Github Action definitions with Dhall

Primary LanguageDhall

github-actions-dhall

Typecheck, template and modularize your Github Action definitions with Dhall.

Usage

Import the github actions definitions as a Dhall package using:

let GithubActions =
      https://raw.githubusercontent.com/regadas/github-actions-dhall/master/package.dhall

Workflow definition can be done by using the schema pattern and setting the appropriate values.

Examples

curl https://raw.githubusercontent.com/regadas/github-actions-dhall/master/examples/hello-world.dhall | dhall-to-yaml
curl https://raw.githubusercontent.com/regadas/github-actions-dhall/master/examples/scala.dhall | dhall-to-yaml
curl https://raw.githubusercontent.com/regadas/github-actions-dhall/master/examples/release-scala.dhall | dhall-to-yaml