View Source GitHubActions.Sigils (GitHubActions v0.3.2)

This module defnies the sigils for GitHubActions.

Summary

Functions

Handles the sigile ~e for GitHub actions expressions.

Marks the given string as quoted.

Functions

sigil_e(string, opts)

@spec sigil_e(String.t(), list()) :: String.t()

Handles the sigile ~e for GitHub actions expressions.

Quotes the given string as a GitHub expression.

Examples

iex> ~e[github.sha]
"${{ github.sha }}"

sigil_q(string, opts)

@spec sigil_q(String.t(), list()) :: {:quoted, String.t()}

Marks the given string as quoted.

This sigil can be used to force quotes in the YAML output.

Modifiers

  • d: forces a double quoted string (default)
  • s: forces a single quoted string
  • e: escapes newlines