From 8712a2d1f3cb6129594b585bb36539abc2cf8b52 Mon Sep 17 00:00:00 2001 From: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Date: Wed, 3 Aug 2022 09:42:13 +0300 Subject: [PATCH] consider to expose triggering_actor in context --- packages/github/src/context.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/github/src/context.ts b/packages/github/src/context.ts index d3f65f7a..d47f5b48 100644 --- a/packages/github/src/context.ts +++ b/packages/github/src/context.ts @@ -15,6 +15,7 @@ export class Context { workflow: string action: string actor: string + triggeringActor: string job: string runNumber: number runId: number @@ -43,6 +44,7 @@ export class Context { this.workflow = process.env.GITHUB_WORKFLOW as string this.action = process.env.GITHUB_ACTION as string this.actor = process.env.GITHUB_ACTOR as string + this.triggeringActor = process.env.GITHUB_TRIGGERING_ACTOR as string this.job = process.env.GITHUB_JOB as string this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER as string, 10) this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10)