1
0
Fork 0

consider to expose triggering_actor in context

pull/1142/head
Zhe Sun 2022-08-03 09:42:13 +03:00 committed by GitHub
parent 01e1ff7bc0
commit 8712a2d1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export class Context {
workflow: string workflow: string
action: string action: string
actor: string actor: string
triggeringActor: string
job: string job: string
runNumber: number runNumber: number
runId: number runId: number
@ -43,6 +44,7 @@ export class Context {
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
this.triggeringActor = process.env.GITHUB_TRIGGERING_ACTOR as string
this.job = process.env.GITHUB_JOB as string this.job = process.env.GITHUB_JOB as string
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER as string, 10) this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER as string, 10)
this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10) this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10)