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#with

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

When a job is used to call a reusable workflow, you can use with to provide a map of inputs that are passed to the called workflow.

Any inputs that you pass must match the input specifications defined in the called workflow.

Unlike jobs.<job_id>.steps[*].with, the inputs you pass with jobs.<job_id>.with are not be available as environment variables in the called workflow. Instead, you can reference the inputs by using the inputs context.

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

const ci = workflow({ name: 'ci' })
  .job('call-workflow', (job) => job
    .uses('octo-org/example-repo/.github/workflows/called-workflow.yml')
    .with({ username: 'mona' })
  );

Parameters

props: WithContext<ExpressionInputData<Base>, Base, "jobs:jobId:with:withId">