From 7c7651be66ebd8380e443c038a8b5c3ea127ad0f Mon Sep 17 00:00:00 2001 From: Korenevskiy Denis Date: Thu, 18 Nov 2021 20:11:25 +0300 Subject: [PATCH] Follow var naming style, add GITHUB_REF_NAME support --- packages/github/src/context.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/github/src/context.ts b/packages/github/src/context.ts index 8b6ace46..5159dc5e 100644 --- a/packages/github/src/context.ts +++ b/packages/github/src/context.ts @@ -12,7 +12,8 @@ export class Context { eventName: string sha: string ref: string - ref_type: string + refName: string + refType: string workflow: string action: string actor: string @@ -41,7 +42,8 @@ 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.refName = process.env.GITHUB_REF_NAME as string + this.refType = 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