Skip to main content
Module

x/actionify/mod.ts>commands.addPath

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

Prepends a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job; the currently running action cannot access the updated path variable. To see the currently defined paths for your job, you can use echo "$PATH" in a step or an action.

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

const pathStep = step()
  .run(commands.addPath("$HOME/.local/bin"));

Parameters

path: ExpressionValue