Skip to main content
Module

x/actionify/mod.ts>c.group

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

Creates an expandable group in the log. To create a group, use the group command and specify a title. Anything you print to the log between the group and endgroup commands is nested inside an expandable entry in the log.

This can be used to run multiple commands in a single run command.

import { commands, e, step } from "https://deno.land/x/actionify@0.3.0/mod.ts";

const exampleStep = step()
  .run(commands.group("My group", [
    commands.setOutput(
      "variableName",
      e.hashFiles("**package.json"),
    ),
    'Another command',
    commands.setOutput(
      "anotherOne",
      e.hashFiles("**lock.json"),
    ),
  ]));

Type Parameters

Commands extends AnyCommand

Parameters

title: string
commands: Array<Commands | string>

Returns

Array<Commands | string>