Skip to content

Commit

Permalink
Add RUN_ATTEMPT to Github context
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmaxime committed Nov 28, 2023
1 parent 0407266 commit faa4254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/github/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class Context {
action: string
actor: string
job: string
runAttempt: number
runNumber: number
runId: number
apiUrl: string
Expand Down Expand Up @@ -44,6 +45,7 @@ export class Context {
this.action = process.env.GITHUB_ACTION as string
this.actor = process.env.GITHUB_ACTOR as string
this.job = process.env.GITHUB_JOB as string
this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT 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.apiUrl = process.env.GITHUB_API_URL ?? `https://api.github.com`
Expand Down

0 comments on commit faa4254

Please sign in to comment.