Skip to main content
Module

x/actionify/mod.ts>Step#env

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
method Step.prototype.env
import { Step } from "https://deno.land/x/actionify@0.2.0/mod.ts";

Sets environment variables for steps to use in the runner environment. You can also set environment variables for the entire workflow or a job. For more information, see env and jobs.<job_id>.env.

When more than one environment variable is defined with the same name, GitHub uses the most specific environment variable. For example, an environment variable defined in a step will override job and workflow variables with the same name, while the step executes. A variable defined for a job will override a workflow variable with the same name, while the job executes.

Public actions may specify expected environment variables in the README file. If you are setting a secret in an environment variable, you must set secrets using the secrets context. For more information, see "Using environment variables" and "Contexts."

Type Parameters

Env extends EnvProps

Parameters

env: WithContext<Env, Base, "jobs:jobId:steps:env">

Returns

Step<CombineAsUnion<Base | { env: StringKeyOf<Env>; }>>