From 8dab5a8140ed4d70d4484baffff959f69a739ab9 Mon Sep 17 00:00:00 2001 From: Korenevskiy Denis Date: Thu, 18 Nov 2021 20:01:55 +0300 Subject: [PATCH] Add GITHUB_REF_TYPE support to github 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..8b6ace46 100644 --- a/packages/github/src/context.ts +++ b/packages/github/src/context.ts @@ -12,6 +12,7 @@ export class Context { eventName: string sha: string ref: string + ref_type: string workflow: string action: string actor: string @@ -40,6 +41,7 @@ export class Context { this.eventName = process.env.GITHUB_EVENT_NAME as string this.sha = process.env.GITHUB_SHA as string this.ref = process.env.GITHUB_REF as string + this.ref_type = process.env.GITHUB_REF_TYPE as string this.workflow = process.env.GITHUB_WORKFLOW as string this.action = process.env.GITHUB_ACTION as string this.actor = process.env.GITHUB_ACTOR as string