Skip to main content
Module

x/actionify/src/expressions.ts

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
import * as actionify from "https://deno.land/x/actionify@0.2.0/src/expressions.ts";

Classes

An expression which is evaluated within the github action context.

Variables

Default context settings that work in all contexts.

Functions

Causes the step to always execute, and returns true, even when canceled. A job or step will not run when a critical failure prevents the task from running. For example, if getting sources failed.

Returns true if the workflow was canceled.

Concat a list of expressions and strings into usesable output.

Returns true if search contains item. If search is an array, this function returns true if the item is an element in the array. If search is a string, this function returns true if the item is a substring of search. This function is not case sensitive. Casts values to a string.

Returns true if searchString ends with searchValue. This function is not case sensitive. Casts values to a string.

Wrap content as an expression.

Returns true when any previous step of a job fails. If you have a chain of dependent jobs, failure() returns true if any ancestor job fails.

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.

Wrap the expression in brackets to create a logical grouping.

The value for array can be an array or a string. All values in array are concatenated into a string. If you provide optionalSeparator, it is inserted between the concatenated values. Otherwise, the default separator , is used. Casts values to a string.

Negates the truthiness of the provided expression / value.

Use a logical / boolean operator to compare the leftHandSide to the rightHandSide.

Returns true when searchString starts with searchValue. This function is not case sensitive. Casts values to a string.

Returns true when none of the previous steps have failed or been canceled.

Wrap an expression or context as an interpolation ${{ <EXPRESSION> }}.