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

x/actionify/mod.ts>commands.warning

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

Creates a warning message and prints the message to the log. This message will create an annotation, which can associate the message with a particular file in your repository. Optionally, your message can specify a position within the file.

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

const exampleStep = step()
  .run(commands.warning(
    'This is a warning', {
      file: 'app.js',
      line: 1,
      col: 5,
      endColumn: 7,
  }));

Parameters

message: ExpressionValue
optional
options: NoticeOptions = [UNSUPPORTED]

Returns

Command<DefaultCommandTypes>