Skip to main content
Module

x/actionify/mod.ts>expressions.format

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function expressions.format
import { expressions } from "https://deno.land/x/actionify@0.3.0/mod.ts";
const { format } = expressions;

Replaces values in the string, with the variable replaceValueN. Variables in the string are specified using the {N} syntax, where N is an integer. You must specify at least one replaceValue and string. There is no maximum for the number of variables (replaceValueN) you can use. Escape curly braces using double braces.

Parameters

stringToFormat: string
...replacements: Array<ExpressionContent<string>>