Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/actionify/mod.ts>commands.group

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

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>