Skip to content

Commit 728bcb5

Browse files

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/github/src/context.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class Context {
1515
workflow: string
1616
action: string
1717
actor: string
18-
runNumber: string
19-
runId: string
18+
runNumber: number
19+
runId: number
2020

2121
/**
2222
* Hydrate the context from the environment
@@ -39,8 +39,8 @@ export class Context {
3939
this.workflow = process.env.GITHUB_WORKFLOW as string
4040
this.action = process.env.GITHUB_ACTION as string
4141
this.actor = process.env.GITHUB_ACTOR as string
42-
this.runNumber = process.env.GITHUB_RUN_NUMBER as string
43-
this.runId = process.env.GITHUB_RUN_ID as string
42+
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER as string, 10)
43+
this.runId = parseInt(process.env.GITHUB_RUN_ID as string, 10)
4444
}
4545

4646
get issue(): {owner: string; repo: string; number: number} {

0 commit comments

Comments
 (0)