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

x/actionify/src/expressions.ts>event

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

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!'))

Parameters

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