pontil/core

Hex.pm][shield-hex]][hexpm] [![Hex Docs][shield-docs] [ Apache 2.0JavaScript CompatibleErlang Compatible

Pontil core implements most functionality required for GitHub Actions in Gleam supporting both Erlang and JavaScript targets, extracted from the preview release of pontil. It provides both higher-level functions for input parsing, logging, outputs, and other functionality from actions/core, part of the GitHub Actions toolkit.

If you are developing a GitHub Action, prefer using pontil over pontil/core. It provides all the same functionality as pontil/core, but provides other features for writing stable actions.

Usage

gleam add pontil_core@1
import pontil/core

pub fn main() {
  let name = core.get_input("name")
  core.info("Hello, " <> name)
  let assert Ok(_) = core.set_output(name: "greeting", value: "Hello, " <> name)
}

Semantic Versioning

Pontil core follows Semantic Versioning 2.0.