mirror of https://github.com/actions/toolkit
Add GITHUB_REF_PROTECTED support
parent
7c7651be66
commit
6a19c78a16
|
@ -14,6 +14,7 @@ export class Context {
|
||||||
ref: string
|
ref: string
|
||||||
refName: string
|
refName: string
|
||||||
refType: string
|
refType: string
|
||||||
|
refProtected: boolean
|
||||||
workflow: string
|
workflow: string
|
||||||
action: string
|
action: string
|
||||||
actor: string
|
actor: string
|
||||||
|
@ -44,6 +45,7 @@ export class Context {
|
||||||
this.ref = process.env.GITHUB_REF as string
|
this.ref = process.env.GITHUB_REF as string
|
||||||
this.refName = process.env.GITHUB_REF_NAME as string
|
this.refName = process.env.GITHUB_REF_NAME as string
|
||||||
this.refType = process.env.GITHUB_REF_TYPE 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.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