1
0
Fork 0

Add GITHUB_REF_PROTECTED support

pull/935/head
Korenevskiy Denis 2021-11-19 14:20:22 +03:00
parent 7c7651be66
commit 6a19c78a16
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export class Context {
ref: string
refName: string
refType: string
refProtected: boolean
workflow: string
action: string
actor: string
@ -44,6 +45,7 @@ export class Context {
this.ref = process.env.GITHUB_REF as string
this.refName = process.env.GITHUB_REF_NAME as string
this.refType = process.env.GITHUB_REF_TYPE as string
this.refProtected = (process.env.GITHUB_REF_PROTECTED as string) === 'true'
this.workflow = process.env.GITHUB_WORKFLOW as string
this.action = process.env.GITHUB_ACTION as string
this.actor = process.env.GITHUB_ACTOR as string