mirror of https://github.com/actions/toolkit
Add GITHUB_REF_TYPE support to github context
parent
e2eeb0a784
commit
8dab5a8140
|
@ -12,6 +12,7 @@ export class Context {
|
||||||
eventName: string
|
eventName: string
|
||||||
sha: string
|
sha: string
|
||||||
ref: string
|
ref: string
|
||||||
|
ref_type: string
|
||||||
workflow: string
|
workflow: string
|
||||||
action: string
|
action: string
|
||||||
actor: string
|
actor: string
|
||||||
|
@ -40,6 +41,7 @@ export class Context {
|
||||||
this.eventName = process.env.GITHUB_EVENT_NAME as string
|
this.eventName = process.env.GITHUB_EVENT_NAME as string
|
||||||
this.sha = process.env.GITHUB_SHA as string
|
this.sha = process.env.GITHUB_SHA as string
|
||||||
this.ref = process.env.GITHUB_REF 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.workflow = process.env.GITHUB_WORKFLOW as string
|
||||||
this.action = process.env.GITHUB_ACTION as string
|
this.action = process.env.GITHUB_ACTION as string
|
||||||
this.actor = process.env.GITHUB_ACTOR as string
|
this.actor = process.env.GITHUB_ACTOR as string
|
||||||
|
|
Loading…
Reference in New Issue