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

x/actionify/src/types.ts>WorkflowOutput

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
interface WorkflowOutput
import { type WorkflowOutput } from "https://deno.land/x/actionify@0.3.0/src/types.ts";

Properties

optional
description: string
value: string | Expression
import {
  defineWorkflows,
  e,
  Workflow,
} from "https://deno.land/x/actionify@0.3.0/mod.ts";

const main = Workflow
  .create({ name: "ci" })
  .job(
    "main",
    (job) => job.outputs({ duration: "100", benchmarkResults: "thumbs up" }),
  )
  .on("workflow_call", (ctx) => ({
    outputs: {
      first: { value: e.expr(ctx.jobs.main.outputs.duration) },
      second: { value: e.expr(ctx.jobs.main.outputs.benchmarkResults) },
    },
  }));

export default defineWorkflows({
  workflows: [main],
});