Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/job.ts>Job#env

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
method Job.prototype.env
import { Job } from "https://deno.land/x/actionify@0.3.0/src/job.ts";

A map of environment variables that are available to the steps of all jobs in the workflow. You can also set environment variables that are only available to the steps of a single job or to a single step. For more information, see jobs.<job_id>.env and jobs.<job_id>.steps[*].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.

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

const ci = workflow({ name: 'ci' })
  .job('myJob', job => {
    return job.name('My Job').env({ SERVER: 'production' });
  });

Parameters

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