Skip to main content
Module

x/actionify/mod.ts>e.event

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function e.event
import { e } from "https://deno.land/x/actionify@0.3.0/mod.ts";
const { event } = e;

Retrieve the desired github event from the provided context.

import { e, job } from "https://deno.land/x/actionify@0.3.0/mod.ts";
import checkout from "https://act.deno.dev/actions/checkout@3.0.2";

const example = job()
  .runsOn('ubuntu-latest')
  .steps(checkout())
  .if(ctx => e.contains(e.event(ctx.github, 'push').head_commit.message, 'do it!'))

Type Parameters

Event extends WorkflowEventName

Parameters

github: Context<GitHubData<any>>
_event: Event

Returns

Context<GitHubContextItem<Event>["event"]>