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

x/actionify/mod.ts>commands.addPath

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function commands.addPath
import { commands } from "https://deno.land/x/actionify@0.3.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.3.0/mod.ts";

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

Parameters

path: ExpressionValue